网站关闭时,禁用预览地址的打开

This commit is contained in:
2025-01-08 10:37:59 +08:00
parent 026e45e9c1
commit 714eff50b2
6 changed files with 4518 additions and 4479 deletions
+8 -4
View File
@@ -1,7 +1,11 @@
VITE_APP_NAME=后台管理系统
VITE_SOCKET_URL=wss://server.gxwebsoft.com
VITE_SERVER_URL=https://server.gxwebsoft.com/api
VITE_API_URL=https://modules.gxwebsoft.com/api
#VITE_THINK_URL=https://gxtyzx-api.websoft.top/api
VITE_SERVER_URL=https://gxtyzx-server.websoft.top/api
VITE_API_URL=https://gxtyzx-modules.websoft.top/api
VITE_THINK_URL=https://gxtyzx-api2.websoft.top/api
VITE_THINK_URL=http://127.0.0.1:9099/api
#VITE_SERVER_URL=http://127.0.0.1:30000/api
#VITE_API_URL=http://127.0.0.1:9002/api
#VITE_THINK_URL=http://127.0.0.1:9099/api
#/booking/bookingItem
+1
View File
@@ -58,6 +58,7 @@ export interface Website {
export interface WebsiteParam extends PageParam {
title?: string;
path?: string;
websiteCode?: string;
authority?: string;
parentId?: number;
}
+5
View File
@@ -88,6 +88,11 @@ export function openSpmUrl(
const timestamp = ref(Date.now() / 1000);
token.value = `&token=${uuid()}`;
// 判断网站是否禁用
if (localStorage.getItem('WebsiteStatus')) {
return false;
}
// 判断模型
if (d?.goodsId) {
model.value = 'g';
+13 -1
View File
@@ -211,7 +211,7 @@
import { getSiteInfo } from '@/api/layout';
import { Design } from '@/api/cms/design/model';
import { getMerchantId } from '@/utils/merchant';
import { removeSiteInfoCache } from '@/api/cms/website';
import {listWebsite, removeSiteInfoCache} from '@/api/cms/website';
import { getMerchant } from "@/api/shop/merchant";
// 表格实例
@@ -507,6 +507,18 @@
}
};
};
/* 查询 */
const query = () => {
listWebsite({ websiteCode: 'gxtyzx' }).then((list) => {
const item = list[0];
if (item.status != 1) {
localStorage.setItem('WebsiteStatus', '1');
return;
}
});
};
query();
</script>
<script lang="ts">
+1
View File
@@ -145,6 +145,7 @@
if (filters) {
where.status = filters.status;
}
where.userId = 3673;
return pageWebsite({
...where,
...orders,
+4490 -4474
View File
File diff suppressed because it is too large Load Diff