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