Skip to content

Commit

Permalink
fix: import error triggers circular reference (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-clan authored Oct 17, 2024
1 parent 6daece8 commit 36fdcf8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/store/modules/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { WHITE_LIST } from '@/router/constants';
import { AppRouteRecordRaw } from '@/router/routes/types';
import DASHBOARD from '@/router/routes/modules/dashboard';
import { DEFAULT_LAYOUT } from '@/router/routes/base';
import router from '@/router';
import { AppState, MenuItem } from './types';

function generateMenu(
Expand Down Expand Up @@ -123,6 +122,7 @@ const useAppStore = defineStore('app', {
closable: true,
});
} catch (error) {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
notifyInstance = Notification.error({
id: 'menuNotice',
content: 'error',
Expand Down
14 changes: 12 additions & 2 deletions src/views/login/components/banner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,18 @@
<a-carousel-item v-for="item in carouselItem" :key="item.slogan">
<div :key="item.slogan" class="carousel-item">
<div class="carousel-title">{{ item.slogan }}</div>
<div class="carousel-sub-title">{{ item.subSlogan }}</div>
<img :src="item.image" class="carousel-image" />
<div class="carousel-sub-title" style="margin-bottom: 20px">{{
item.subSlogan
}}</div>
<!--<img :src="item.image" class="carousel-image" />-->
<iframe
src="https://discord.com/widget?id=1185035164577972344&theme=dark"
width="350"
height="350"
allowtransparency="true"
frameborder="0"
sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"
></iframe>
</div>
</a-carousel-item>
</a-carousel>
Expand Down
2 changes: 1 addition & 1 deletion src/views/login/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
]),
showIcon: false,
closable: true,
duration: 1000 * 15,
duration: 1000 * 30,
});
</script>

Expand Down

0 comments on commit 36fdcf8

Please sign in to comment.