系统管理加前缀path “/system”

This commit is contained in:
吕金泽
2022-03-28 21:21:26 +08:00
parent 178e024cf8
commit 25b91353b1
116 changed files with 240 additions and 474 deletions
+3 -3
View File
@@ -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()
+2 -2
View File
@@ -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