Skip to content

Commit 91ddd03

Browse files
committed
fix: loading always dark mode
1 parent 4baab75 commit 91ddd03

File tree

6 files changed

+18
-13
lines changed

6 files changed

+18
-13
lines changed

src/components/modules/plugin/flow/vue-flow/layout.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { type Edge, type Node, Position, useVueFlow } from '@vue-flow/core'
1+
import type { Edge, Node } from '@vue-flow/core'
2+
import { Position, useVueFlow } from '@vue-flow/core'
23
import dagre from 'dagre'
34

45
export function useLayout() {

src/components/modules/plugin/flow/vue-flow/run-process.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { type Node, useVueFlow } from '@vue-flow/core'
1+
import type { Node } from '@vue-flow/core'
2+
import { useVueFlow } from '@vue-flow/core'
23

34
export function useRunProcess({
45
graph: dagreGraph,

src/directives/longpress.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ export const longpress: Directive = {
4545
if (timer === null) {
4646
timer = isInter
4747
? setTimeout(() => {
48-
cb()
49-
onDownInter(ev)
50-
}, num)
48+
cb()
49+
onDownInter(ev)
50+
}, num)
5151
: setTimeout(() => cb(), num)
5252
}
5353
}

src/router/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import type { App } from 'vue'
2+
import type { RouterHistory } from 'vue-router'
23
import { setupLayouts } from 'virtual:generated-layouts'
34
import {
45
createMemoryHistory,
56
createRouter,
67
createWebHashHistory,
78
createWebHistory,
8-
type RouterHistory,
9+
910
} from 'vue-router'
1011
import { routes } from 'vue-router/auto-routes'
1112
import { createRouterGuard } from './guard'

src/store/modules/auth/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ import { localStg } from '@/utils/storage'
66
import { useLoading } from '@sa/hooks'
77
import { defineStore } from 'pinia'
88
import { useRouteStore } from '../route'
9+
import { useThemeStore } from '../theme'
910
import { clearAuthStorage, getToken } from './shared'
1011

1112
export const useAuthStore = defineStore(SetupStoreId.Auth, () => {
13+
useThemeStore()
1214
const route = useRoute()
1315
const routeStore = useRouteStore()
1416
const { toLogin, redirectFromLogin } = useRouterPush(false)

vercel.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
{
2-
"rewrites": [
3-
{
4-
"source": "/(.*)",
5-
"destination": "/index.html"
6-
}
7-
]
1+
{
2+
"rewrites": [
3+
{
4+
"source": "/(.*)",
5+
"destination": "/index.html"
6+
}
7+
]
88
}

0 commit comments

Comments
 (0)