网站关闭时,禁用预览地址的打开
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -145,6 +145,7 @@
|
||||
if (filters) {
|
||||
where.status = filters.status;
|
||||
}
|
||||
where.userId = 3673;
|
||||
return pageWebsite({
|
||||
...where,
|
||||
...orders,
|
||||
|
||||
Reference in New Issue
Block a user