diff --git a/backend/init/viper/viper.go b/backend/init/viper/viper.go index 9e819c702..31f68bed4 100644 --- a/backend/init/viper/viper.go +++ b/backend/init/viper/viper.go @@ -14,7 +14,8 @@ import ( ) func Init() { - stdout, err := cmd.Exec("grep '^BASE_DIR=' /usr/bin/1pctl | cut -d'=' -f2") + //stdout, err := cmd.Exec("grep '^BASE_DIR=' /usr/bin/1pctl | cut -d'=' -f2") + stdout, err := cmd.Exec("grep '^BASE_DIR=' /Users/wangzhengkun/Downloads/1pctl | cut -d'=' -f2") if err != nil { panic(err) } diff --git a/frontend/src/assets/images/403.png b/frontend/src/assets/images/403.png deleted file mode 100644 index 0c5ec7c7c..000000000 Binary files a/frontend/src/assets/images/403.png and /dev/null differ diff --git a/frontend/src/assets/images/404.png b/frontend/src/assets/images/404.png deleted file mode 100644 index 2333586e4..000000000 Binary files a/frontend/src/assets/images/404.png and /dev/null differ diff --git a/frontend/src/assets/images/404.svg b/frontend/src/assets/images/404.svg new file mode 100644 index 000000000..1fb16d8a1 --- /dev/null +++ b/frontend/src/assets/images/404.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/frontend/src/assets/images/500.png b/frontend/src/assets/images/500.png deleted file mode 100644 index 6f3b6bff9..000000000 Binary files a/frontend/src/assets/images/500.png and /dev/null differ diff --git a/frontend/src/components/error-message/403.vue b/frontend/src/components/error-message/403.vue deleted file mode 100644 index e8f099510..000000000 --- a/frontend/src/components/error-message/403.vue +++ /dev/null @@ -1,18 +0,0 @@ - - - - - diff --git a/frontend/src/components/error-message/404.vue b/frontend/src/components/error-message/404.vue index 79596e76d..92c75d170 100644 --- a/frontend/src/components/error-message/404.vue +++ b/frontend/src/components/error-message/404.vue @@ -1,12 +1,9 @@ @@ -14,5 +11,34 @@ diff --git a/frontend/src/components/error-message/500.vue b/frontend/src/components/error-message/500.vue deleted file mode 100644 index 19c49fa9f..000000000 --- a/frontend/src/components/error-message/500.vue +++ /dev/null @@ -1,18 +0,0 @@ - - - - - diff --git a/frontend/src/components/error-message/index.scss b/frontend/src/components/error-message/index.scss deleted file mode 100644 index b27d1829a..000000000 --- a/frontend/src/components/error-message/index.scss +++ /dev/null @@ -1,32 +0,0 @@ -.not-container { - display: flex; - align-items: center; - justify-content: center; - width: 100%; - height: 100%; - .not-img { - margin-right: 120px; - } - .not-detail { - display: flex; - flex-direction: column; - h2, - h4 { - padding: 0; - margin: 0; - } - h2 { - font-size: 60px; - color: #434e59; - } - h4 { - margin: 30px 0 20px; - font-size: 19px; - font-weight: normal; - color: #848587; - } - .el-button { - width: 100px; - } - } -} diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 4e313577d..ad0b7a028 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -89,6 +89,7 @@ export default { copyfailed: '复制失败', backupSuccess: '备份成功', restoreSuccess: '备份成功', + notFound: '抱歉,您访问的页面不存在', }, login: { firstLogin: '首次登录,请创建初始管理员用户!', diff --git a/frontend/src/views/setting/panel/index.vue b/frontend/src/views/setting/panel/index.vue index d9edc09f6..f14bc5a1f 100644 --- a/frontend/src/views/setting/panel/index.vue +++ b/frontend/src/views/setting/panel/index.vue @@ -19,6 +19,22 @@ + + + + + {{ $t('setting.light') }} + + + + {{ $t('setting.dark') }} + + + +