主页通知
This commit is contained in:
parent
22c9f916f5
commit
14dd1045ca
@ -344,6 +344,7 @@
|
||||
tabsViewStore.closeAllTabs();
|
||||
localStorage.removeItem(TABS_ROUTES);
|
||||
localStorage.removeItem(FIRST_ROUTE);
|
||||
localStorage.removeItem('adClosed')
|
||||
asyncRouteStore.setDynamicAddedRoute(false);
|
||||
window.location.reload();
|
||||
router.replace({
|
||||
|
@ -330,14 +330,14 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, onMounted } from 'vue';
|
||||
import { ref, onMounted,h } from 'vue';
|
||||
import 'element-plus/theme-chalk/display.css';
|
||||
import NewVisitAmount from './components/NewVisitAmount.vue';
|
||||
import { getConsoleInfo } from '@/api/dashboard/console';
|
||||
import { CountTo } from '@/components/CountTo/index';
|
||||
import Pie from '../console/components/Pie.vue';
|
||||
import VisiTab from '../console/components/VisiTab.vue';
|
||||
|
||||
import { ElNotification} from 'element-plus';
|
||||
import salesDashboard from '@/assets/images/sales-dashboard.svg';
|
||||
import schoolboy from '@/assets/images/schoolboy.png';
|
||||
import {
|
||||
@ -367,6 +367,25 @@
|
||||
// orderLarge.value = res.orderLarge;
|
||||
// volume.value = res.volume;
|
||||
loading.value = false;
|
||||
if (!localStorage.getItem('adClosed')) {
|
||||
ElNotification({
|
||||
type:'info',
|
||||
title: '双十二限时特惠',
|
||||
message:h('div', [
|
||||
h('span', '正在进行双十二限时促销活动,五折特平惠,'),
|
||||
h(
|
||||
'a',
|
||||
{
|
||||
href: 'https://www.baidu.com',
|
||||
target: '_blank',
|
||||
},
|
||||
'前往购买授权',
|
||||
),
|
||||
]),
|
||||
duration: 5000,
|
||||
});
|
||||
localStorage.setItem('adClosed', 'true');
|
||||
}
|
||||
});
|
||||
|
||||
function goUrl() {
|
||||
|
Loading…
Reference in New Issue
Block a user