diff --git a/src/App.vue b/src/App.vue index 9ce1dae..5225533 100644 --- a/src/App.vue +++ b/src/App.vue @@ -28,9 +28,9 @@ import { NNotificationProvider, useOsTheme } from 'naive-ui' -import MainNav from './components/MainNav.vue' -import GuestNav from './components/GuestNav.vue' -import Notification from './components/Notification.vue' +import MainNav from '@components/MainNav.vue' +import GuestNav from '@components/GuestNav.vue' +import Notification from '@components/Notification.vue' import { computed } from 'vue' import userData from '@/utils/stores/userData/store' import hljs from 'highlight.js/lib/core' @@ -39,7 +39,7 @@ import nginx from 'highlight.js/lib/languages/nginx' import api from '@/api' import { sendWarningMessage } from '@/utils/message' import { logout } from '@/utils/profile' -import router from '@/router/index' +import router from '@router' // import { init_ws, SetOnMessageFunction } from "@/utils/websocket.js"; // import { sendInfoNotification } from '@/utils/notification' diff --git a/src/components/GuestNav.vue b/src/components/GuestNav.vue index 0e57b39..18ed2cb 100644 --- a/src/components/GuestNav.vue +++ b/src/components/GuestNav.vue @@ -41,7 +41,7 @@ import { h, ref, onMounted } from 'vue' import { NGradientText } from 'naive-ui' import GuestSideBar from './GuestSideBar.vue' -import router from '@/router/index' +import router from '@router' import { get } from '@/utils/request' // 手机状态下收缩菜单栏 diff --git a/src/components/GuestSideBar.vue b/src/components/GuestSideBar.vue index ea0fb6b..55862da 100644 --- a/src/components/GuestSideBar.vue +++ b/src/components/GuestSideBar.vue @@ -68,7 +68,7 @@ const menuOptions = [ + + + + 404 :( + 我们没有找到你请求的页面,似乎你来到了没有任何东西的地方..? + { + if (userData.getters.get_token != '') router.push('/dashboard') + else router.push('/') + } + " + > + 带我去首页 + + + + + diff --git a/src/views/RealName.vue b/src/views/RealNameView.vue similarity index 100% rename from src/views/RealName.vue rename to src/views/RealNameView.vue diff --git a/src/views/Sign.vue b/src/views/SignView.vue similarity index 100% rename from src/views/Sign.vue rename to src/views/SignView.vue diff --git a/src/views/SoftwareDownloadView.vue b/src/views/SoftwareDownloadView.vue new file mode 100644 index 0000000..e69de29 diff --git a/src/views/NewYear.vue b/src/views/activities/NewYearView.vue similarity index 100% rename from src/views/NewYear.vue rename to src/views/activities/NewYearView.vue diff --git a/src/views/Prize.vue b/src/views/activities/PrizeView.vue similarity index 100% rename from src/views/Prize.vue rename to src/views/activities/PrizeView.vue diff --git a/src/views/Login.vue b/src/views/auth/LoginView.vue similarity index 99% rename from src/views/Login.vue rename to src/views/auth/LoginView.vue index 2ea31be..6134914 100644 --- a/src/views/Login.vue +++ b/src/views/auth/LoginView.vue @@ -58,7 +58,7 @@ import { ref, onMounted } from 'vue' import { useLoadingBar, useMessage } from 'naive-ui' import { getUrlKey } from '@/utils/request' -import router from '@/router/index' +import router from '@router' import userData from '@/utils/stores/userData/store' import { sendErrorMessage } from '@/utils/message' import logger from '@/utils/logger' diff --git a/src/views/Register.vue b/src/views/auth/RegisterView.vue similarity index 99% rename from src/views/Register.vue rename to src/views/auth/RegisterView.vue index 9a0efbe..06a9c78 100644 --- a/src/views/Register.vue +++ b/src/views/auth/RegisterView.vue @@ -50,7 +50,7 @@
我们没有找到你请求的页面,似乎你来到了没有任何东西的地方..?