Skip to content

Commit

Permalink
chore(优化404页面,移除user center假功能)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanyxmo committed Oct 17, 2024
1 parent 1f1e09d commit 12499c9
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 262 deletions.
1 change: 1 addition & 0 deletions web/src/assets/images/404.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions web/src/layouts/[...all].vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<i18n lang="yaml">
en:
home: Back to Home
zh_CN:
home: 回到首页
zh_TW:
home: 回到首頁
</i18n>

<script setup lang="ts">
import image404 from '@/assets/images/404.svg'
import { useLocalTrans } from '@/hooks/useLocalTrans.ts'
const t = useLocalTrans()
const router = useRouter()
</script>

<template>
<div class="w-full flex flex-col-center">
<img :src="image404" width="600" alt="404">
<div class="flex">
<m-button @click="() => router.replace('/')">
<ma-svg-icon name="i-material-symbols:home-outline-rounded" :size="20" />
{{ t('home') }}
</m-button>
</div>
</div>
</template>
5 changes: 0 additions & 5 deletions web/src/modules/base/views/[...all].vue

This file was deleted.

4 changes: 2 additions & 2 deletions web/src/modules/base/views/uc/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ watch(avatar, async (val: string | undefined) => {
{{ useLocalTrans('whetherReceiveMsg') }}
</div>
<div class="desc-value">
<m-switch v-model="form.isReceiveMsg" />
<!-- <m-switch v-model="form.isReceiveMsg" /> -->
</div>
</div>
</li>
Expand All @@ -180,7 +180,7 @@ watch(avatar, async (val: string | undefined) => {
{{ useLocalTrans('whetherMultiDeviceLogin') }}
</div>
<div class="desc-value">
<m-switch v-model="form.multiDeviceLogin" />
<!-- <m-switch v-model="form.multiDeviceLogin" /> -->
</div>
</div>
</li>
Expand Down
93 changes: 0 additions & 93 deletions web/src/modules/base/views/uc/logs.vue

This file was deleted.

141 changes: 0 additions & 141 deletions web/src/modules/base/views/uc/message.vue

This file was deleted.

2 changes: 1 addition & 1 deletion web/src/router/static-routes/rootRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const rootRoutes: RouteRecordRaw[] = [
{
path: '/:pathMatch(.*)*',
name: 'notFound',
component: () => import(('~/base/views/[...all].vue')),
component: () => import(('@/layouts/[...all].vue')),
meta: {
title: '找不到页面',
i18n: 'menu.pageNotFound',
Expand Down
20 changes: 0 additions & 20 deletions web/src/router/static-routes/ucChildren/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,4 @@ export default [
i18n: 'menu.uc:index',
},
},
{
name: 'uc:message',
path: '/uc/message',
component: () => import(('~/base/views/uc/message.vue')),
meta: {
title: '消息',
icon: 'ph:chat-teardrop-text-bold',
i18n: 'menu.uc:message',
},
},
{
name: 'uc:logs',
path: '/uc/logs',
component: () => import(('~/base/views/uc/logs.vue')),
meta: {
title: '日志',
icon: 'ic:baseline-gps-fixed',
i18n: 'menu.uc:logs',
},
},
]

0 comments on commit 12499c9

Please sign in to comment.