Explorar el Código

用户管理-店铺授权添加权限;

xinyan hace 6 meses
padre
commit
751f83094e
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/views/system/user/ShopAuthorize.vue

+ 2 - 2
src/views/system/user/ShopAuthorize.vue

@@ -58,12 +58,12 @@ function removeTag(tag: any) {
 }
 
 async function fetchShopOptions() {
-  const res = await useResponse(api.getShopOptions);
+  const res = await useResponse(api.getShopOptions, { is_all : true});
   shopOptions.value = res.data;
 }
 
 async function fetchAuthorizedShop() {
-  const resp = await useResponse(api.getAuthorizedShop, { user_id: rowData?.id ,is_all : true });
+  const resp = await useResponse(api.getAuthorizedShop, { user_id: rowData?.id});
   const authorizedShops = (resp.data.authorized_shops ?? []).filter((item: any) => item !== null); // 过滤掉 null 值
 
   if (resp.data.is_authorized_all_shops) {