update list response

This commit is contained in:
lb
2022-08-04 14:41:47 +08:00
parent d3752c4f40
commit 3df2939fb4
33 changed files with 79 additions and 76 deletions

View File

@@ -92,7 +92,7 @@ router.beforeEach((to, from, next) => {
return next()
}
// 获取字典列表, 添加并全局变量保存
http.get('/sys/dict/type/all').then(({ data: res }) => {
http.get(http.adornUrl('/sys/dict/type/all')).then(({ data: res }) => {
if (res.code !== 0) {
return
}
@@ -101,7 +101,7 @@ router.beforeEach((to, from, next) => {
// console.log("catch /sys/dict/type/all", err)
})
// 获取菜单列表, 添加并全局变量保存
http.get('/sys/menu/nav').then(({ data: res }) => {
http.get(http.adornUrl('/sys/menu/nav')).then(({ data: res }) => {
if (res.code !== 0) {
Vue.prototype.$message.error(res.msg)
return next({ name: 'login' })