mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2026-05-15 00:00:02 +08:00
系统管理加前缀path “/system”
This commit is contained in:
@@ -22,7 +22,7 @@ export function removeToken() {
|
||||
|
||||
export async function getUserInfo() {
|
||||
await request({
|
||||
url: 'user/info',
|
||||
url: '/system/user/info',
|
||||
method: 'get'
|
||||
}).then(response => {
|
||||
const { data } = response
|
||||
@@ -40,7 +40,7 @@ export async function getUserInfo() {
|
||||
export function login(data){
|
||||
return new Promise((resolve, reject) => {
|
||||
request({
|
||||
url: 'security/login',
|
||||
url: '/system/security/login',
|
||||
method: 'post',
|
||||
data
|
||||
}).then(res => {
|
||||
@@ -55,7 +55,7 @@ export function login(data){
|
||||
|
||||
export function logout(){
|
||||
request({
|
||||
url: 'security/logout',
|
||||
url: '/system/security/logout',
|
||||
method: 'get'
|
||||
}).then(() => {
|
||||
removeToken()
|
||||
|
||||
@@ -7,7 +7,7 @@ const common = {}
|
||||
let dictData = []
|
||||
common.getDictData = async function() {
|
||||
await request({
|
||||
url: 'dict/items/all',
|
||||
url: '/system/dict/items/all',
|
||||
method: 'get'
|
||||
}).then((response) => {
|
||||
const { data } = response
|
||||
@@ -160,7 +160,7 @@ common.getUrl = (url, data) => {
|
||||
|
||||
// common.loadConfig = async() => {
|
||||
// await request({
|
||||
// url: 'config/list'
|
||||
// url: '/system/config/list'
|
||||
// }).then(res => {
|
||||
// const { data } = res
|
||||
// global.filePrefix = data.filePrefix
|
||||
|
||||
@@ -32,7 +32,7 @@ const install = (app) => {
|
||||
lock: true,
|
||||
background: 'rgba(255, 255, 255, 0)',
|
||||
})
|
||||
app.config.globalProperties.$post('/component/list').then((res) => {
|
||||
app.config.globalProperties.$post('/system/component/list').then((res) => {
|
||||
res.data.forEach(it => {
|
||||
appComponent(app, it)
|
||||
})
|
||||
|
||||
@@ -43,7 +43,7 @@ export const loadView = (view) => {
|
||||
export function generateRoutes(){
|
||||
return new Promise((resolve, reject) => {
|
||||
request({
|
||||
url: 'menu/current/menus',
|
||||
url: '/system/menu/current/menus',
|
||||
method: 'post'
|
||||
}).then(response => {
|
||||
const { data } = response
|
||||
|
||||
Reference in New Issue
Block a user