forked from mt-fe-group/mt-yd-ui
update list response
This commit is contained in:
@@ -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' })
|
||||
|
||||
Reference in New Issue
Block a user