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

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
+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,