Prechádzať zdrojové kódy

fix(announcement): 修正公告分类列表接口路径

yz 1 mesiac pred
rodič
commit
a7d00eaca3

+ 2 - 2
src/api/announcement/category.js

@@ -59,7 +59,7 @@ import request from '@/router/axios';
  */
 export const getCategoryList = () => {
   return request({
-    url: '/blade-factory/api/notice/category/list',
+    url: '/blade-factory/api/factory/notice/category/list',
     method: 'get'
   })
 }
@@ -150,4 +150,4 @@ export const updateCategoryStatus = (id, status) => {
       status
     }
   })
-}
+}

+ 1 - 1
src/api/announcement/index.js

@@ -145,7 +145,7 @@ export const getBrandList = () => {
  */
 export const getCategoryList = () => {
   return request({
-    url: '/blade-factory/api/notice/category/list',
+    url: '/blade-factory/api/factory/notice/category/list',
     method: 'get'
   });
 };