Skip to content

Commit 391372d

Browse files
committed
chore: upgrade deps
1 parent ba8b10b commit 391372d

File tree

11 files changed

+1669
-763
lines changed

11 files changed

+1669
-763
lines changed

package-lock.json

Lines changed: 1622 additions & 748 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
"tvision-color": "^1.6.0",
3636
"vue": "^3.5.18",
3737
"vue-i18n": "^9.9.1",
38-
"vue-router": "~4.3.0"
38+
"vue-router": "^4.6.0"
3939
},
4040
"devDependencies": {
41-
"@antfu/eslint-config": "^4.10.1",
41+
"@antfu/eslint-config": "^6.7.1",
4242
"@commitlint/cli": "^19.8.0",
4343
"@commitlint/config-conventional": "^19.8.0",
4444
"@types/echarts": "^4.9.21",
@@ -73,7 +73,7 @@
7373
"vite": "^6.2.2",
7474
"vite-plugin-mock": "^3.0.1",
7575
"vite-svg-loader": "^5.1.0",
76-
"vue-tsc": "^2.2.8"
76+
"vue-tsc": "^3.1.8"
7777
},
7878
"config": {
7979
"commitizen": {

src/layouts/components/LayoutContent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
drag-sort
66
theme="card"
77
:class="`${prefix}-layout-tabs-nav`"
8-
:value="$route.path"
8+
:value="route.path"
99
:style="{ position: 'sticky', top: 0, width: '100%' }"
1010
@change="(value) => handleChangeCurrentTab(value as string)"
1111
@remove="handleRemove"

src/pages/result/403/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
<template>
22
<result title="403 Forbidden" :tip="t('pages.result.403.tips')">
3-
<t-button @click="() => $router.push('/')">{{ t('pages.result.403.back') }}</t-button>
3+
<t-button @click="() => router.push('/')">{{ t('pages.result.403.back') }}</t-button>
44
</result>
55
</template>
66
<script setup lang="ts">
7+
import { useRouter } from 'vue-router';
8+
79
import Result from '@/components/result/index.vue';
810
import { t } from '@/locales';
911
1012
defineOptions({
1113
name: 'Result403',
1214
});
15+
16+
const router = useRouter();
1317
</script>

src/pages/result/404/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
<template>
22
<result title="404 Not Found" :tip="t('pages.result.404.subtitle')" type="404">
3-
<t-button @click="() => $router.push('/')">{{ t('pages.result.404.back') }}</t-button>
3+
<t-button @click="() => router.push('/')">{{ t('pages.result.404.back') }}</t-button>
44
</result>
55
</template>
66
<script setup lang="ts">
7+
import { useRouter } from 'vue-router';
8+
79
import Result from '@/components/result/index.vue';
810
import { t } from '@/locales';
911
1012
defineOptions({
1113
name: 'Result404',
1214
});
15+
16+
const router = useRouter();
1317
</script>

src/pages/result/500/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
<template>
22
<result title="500 Internal Server Error" type="500" :tip="t('pages.result.500.subtitle')">
3-
<t-button @click="() => $router.push('/')">{{ t('pages.result.500.back') }}</t-button>
3+
<t-button @click="() => router.push('/')">{{ t('pages.result.500.back') }}</t-button>
44
</result>
55
</template>
66
<script setup lang="ts">
7+
import { useRouter } from 'vue-router';
8+
79
import Result from '@/components/result/index.vue';
810
import { t } from '@/locales';
911
1012
defineOptions({
1113
name: 'Result500',
1214
});
15+
16+
const router = useRouter();
1317
</script>

src/pages/result/browser-incompatible/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
:tip="t('pages.result.browserIncompatible.subtitle')"
66
>
77
<div class="result-slot-container">
8-
<t-button class="result-button" @click="() => $router.push('/')">{{
8+
<t-button class="result-button" @click="() => router.push('/')">{{
99
t('pages.result.browserIncompatible.back')
1010
}}</t-button>
1111
<div class="recommend-container">
@@ -25,13 +25,17 @@
2525
</result>
2626
</template>
2727
<script setup lang="ts">
28+
import { useRouter } from 'vue-router';
29+
2830
import Result from '@/components/result/index.vue';
2931
import Thumbnail from '@/components/thumbnail/index.vue';
3032
import { t } from '@/locales';
3133
3234
defineOptions({
3335
name: 'ResultBrowserIncompatible',
3436
});
37+
38+
const router = useRouter();
3539
</script>
3640
<style lang="less" scoped>
3741
.result-slot-container {

src/pages/result/fail/index.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,23 @@
44
<div class="result-success-title">{{ t('pages.result.fail.title') }}</div>
55
<div class="result-success-describe">{{ t('pages.result.fail.subtitle') }}</div>
66
<div>
7-
<t-button theme="default" @click="() => $router.push('/dashboard/base')">{{
7+
<t-button theme="default" @click="() => router.push('/dashboard/base')">{{
88
t('pages.result.fail.back')
99
}}</t-button>
10-
<t-button @click="() => $router.push('/form/base')">{{ t('pages.result.fail.modify') }} </t-button>
10+
<t-button @click="() => router.push('/form/base')">{{ t('pages.result.fail.modify') }} </t-button>
1111
</div>
1212
</div>
1313
</template>
1414
<script lang="ts" setup>
15+
import { useRouter } from 'vue-router';
16+
1517
import { t } from '@/locales';
1618
1719
defineOptions({
1820
name: 'ResultFail',
1921
});
22+
23+
const router = useRouter();
2024
</script>
2125
<style lang="less" scoped>
2226
.result-success {
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
<template>
22
<result :title="t('pages.result.maintenance.title')" :tip="t('pages.result.maintenance.subtitle')" type="maintenance">
3-
<t-button theme="primary" @click="() => $router.push('/')">{{ t('pages.result.maintenance.back') }}</t-button>
3+
<t-button theme="primary" @click="() => router.push('/')">{{ t('pages.result.maintenance.back') }}</t-button>
44
</result>
55
</template>
66
<script setup lang="ts">
7+
import { useRouter } from 'vue-router';
8+
79
import Result from '@/components/result/index.vue';
810
import { t } from '@/locales';
911
1012
defineOptions({
1113
name: 'ResultMaintenance',
1214
});
15+
16+
const router = useRouter();
1317
</script>
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
<template>
22
<result :title="t('pages.result.networkError.title')" :tip="t('pages.result.networkError.subtitle')" type="wifi">
33
<div>
4-
<t-button theme="default" @click="() => $router.push('/')">{{ t('pages.result.networkError.back') }}</t-button>
5-
<t-button @click="() => $router.push('/')">{{ t('pages.result.networkError.reload') }}</t-button>
4+
<t-button theme="default" @click="() => router.push('/')">{{ t('pages.result.networkError.back') }}</t-button>
5+
<t-button @click="() => router.push('/')">{{ t('pages.result.networkError.reload') }}</t-button>
66
</div>
77
</result>
88
</template>
99
<script setup lang="ts">
10+
import { useRouter } from 'vue-router';
11+
1012
import Result from '@/components/result/index.vue';
1113
import { t } from '@/locales';
1214
1315
defineOptions({
1416
name: 'ResultNetworkError',
1517
});
18+
19+
const router = useRouter();
1620
</script>

0 commit comments

Comments
 (0)