File tree Expand file tree Collapse file tree 11 files changed +1669
-763
lines changed
Expand file tree Collapse file tree 11 files changed +1669
-763
lines changed Original file line number Diff line number Diff line change 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" ,
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" : {
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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+
79import Result from ' @/components/result/index.vue' ;
810import { t } from ' @/locales' ;
911
1012defineOptions ({
1113 name: ' Result403' ,
1214});
15+
16+ const router = useRouter ();
1317 </script >
Original file line number Diff line number Diff line change 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+
79import Result from ' @/components/result/index.vue' ;
810import { t } from ' @/locales' ;
911
1012defineOptions ({
1113 name: ' Result404' ,
1214});
15+
16+ const router = useRouter ();
1317 </script >
Original file line number Diff line number Diff line change 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+
79import Result from ' @/components/result/index.vue' ;
810import { t } from ' @/locales' ;
911
1012defineOptions ({
1113 name: ' Result500' ,
1214});
15+
16+ const router = useRouter ();
1317 </script >
Original file line number Diff line number Diff line change 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" >
2525 </result >
2626</template >
2727<script setup lang="ts">
28+ import { useRouter } from ' vue-router' ;
29+
2830import Result from ' @/components/result/index.vue' ;
2931import Thumbnail from ' @/components/thumbnail/index.vue' ;
3032import { t } from ' @/locales' ;
3133
3234defineOptions ({
3335 name: ' ResultBrowserIncompatible' ,
3436});
37+
38+ const router = useRouter ();
3539 </script >
3640<style lang="less" scoped>
3741.result-slot-container {
Original file line number Diff line number Diff line change 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+
1517import { t } from ' @/locales' ;
1618
1719defineOptions ({
1820 name: ' ResultFail' ,
1921});
22+
23+ const router = useRouter ();
2024 </script >
2125<style lang="less" scoped>
2226.result-success {
Original file line number Diff line number Diff line change 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+
79import Result from ' @/components/result/index.vue' ;
810import { t } from ' @/locales' ;
911
1012defineOptions ({
1113 name: ' ResultMaintenance' ,
1214});
15+
16+ const router = useRouter ();
1317 </script >
Original file line number Diff line number Diff line change 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+
1012import Result from ' @/components/result/index.vue' ;
1113import { t } from ' @/locales' ;
1214
1315defineOptions ({
1416 name: ' ResultNetworkError' ,
1517});
18+
19+ const router = useRouter ();
1620 </script >
You can’t perform that action at this time.
0 commit comments