diff --git a/manager/src/api/index.js b/manager/src/api/index.js index c07340ad..b89115a9 100644 --- a/manager/src/api/index.js +++ b/manager/src/api/index.js @@ -304,11 +304,6 @@ export const deleteMessageSend = (ids, params) => { return deleteRequest(`/manager/messageSend/delByIds/${ids}`, params); }; -// 通过id获取子地区 -export const getRegion = (id) => { - return getRequest(`/region/item/${id}`); -}; - // 分页获取文件数据 export const getFileListData = (params) => { return getRequest("/file", params); @@ -389,11 +384,6 @@ export const delRegion = (ids) => { return deleteRequest(`/region/${ids}`); }; -// 通过id获取地区详情 -export const getRegionDetail = (id) => { - return getRequest(`/region/${id}`); -}; - // 更新地区 export const updateRegion = (id, params) => { return putRequest(`/region/${id}`, params); diff --git a/manager/src/config/index.js b/manager/src/config/index.js index 8c65db4f..ce41e786 100644 --- a/manager/src/config/index.js +++ b/manager/src/config/index.js @@ -17,14 +17,14 @@ export default { * @description api请求基础路径 */ api_dev: { - // common: "https://common-api.pickmall.cn", - // buyer: "https://buyer-api.pickmall.cn", - // seller: "https://store-api.pickmall.cn", - // manager: "https://admin-api.pickmall.cn" - common: 'http://192.168.0.101:8890', - buyer: 'http://192.168.0.101:8888', - seller: 'http://192.168.0.101:8889', - manager: 'http://192.168.0.101:8887' + common: "https://common-api.pickmall.cn", + buyer: "https://buyer-api.pickmall.cn", + seller: "https://store-api.pickmall.cn", + manager: "https://admin-api.pickmall.cn" + // common: 'http://192.168.0.101:8890', + // buyer: 'http://192.168.0.101:8888', + // seller: 'http://192.168.0.101:8889', + // manager: 'http://192.168.0.101:8887' }, api_prod: { common: "https://common-api.pickmall.cn", diff --git a/manager/src/libs/axios.js b/manager/src/libs/axios.js index 5d8c68ec..0f485681 100644 --- a/manager/src/libs/axios.js +++ b/manager/src/libs/axios.js @@ -103,6 +103,7 @@ service.interceptors.response.use( } else { // 其他错误处理 + console.log(error.response.data); Message.error(error.response.data.message) } } diff --git a/manager/src/libs/util.js b/manager/src/libs/util.js index bb47b972..eb16c8ab 100644 --- a/manager/src/libs/util.js +++ b/manager/src/libs/util.js @@ -331,7 +331,6 @@ util.initRouter = function (vm) { // 初始化路由 getCurrentPermissionList().then(res => { if (!res.success) return false; let menuData = res.result; - // let menuData = result // 格式化数据,设置 空children 为 null for(let i =0;i { let nav = { name: e.name, - title: e.title, - icon: e.icon + title: e.title } navList.push(nav); }) @@ -460,6 +460,7 @@ util.initRouterNode = function (routers, data) { // data为所有子菜单数 meta.permTypes = menu.permTypes ? menu.permTypes : null; meta.title = menu.title ? menu.title + " - lilishop 运营后台" : null; meta.url = menu.url ? menu.url : null; + meta.firstRouterName = item.firstRouterName menu.meta = meta; routers.push(menu); diff --git a/manager/src/views/lili-components/region.vue b/manager/src/views/lili-components/region.vue index 3ede1a0f..e2859e8e 100644 --- a/manager/src/views/lili-components/region.vue +++ b/manager/src/views/lili-components/region.vue @@ -11,7 +11,7 @@