-
404
-
未找到你想要的页面
+
+
+
+ 回到首页
+
diff --git a/src/views/error-page/index.scss b/src/views/error-page/index.scss
new file mode 100644
index 00000000..bee1a208
--- /dev/null
+++ b/src/views/error-page/index.scss
@@ -0,0 +1,11 @@
+.error-page {
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ &-svg {
+ width: 400px;
+ margin-bottom: 50px;
+ }
+}
diff --git a/vite.config.ts b/vite.config.ts
index 445cfddb..cbdbb193 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -3,6 +3,7 @@ import type { ConfigEnv, UserConfigExport } from "vite"
import path, { resolve } from "path"
import vue from "@vitejs/plugin-vue"
import { createSvgIconsPlugin } from "vite-plugin-svg-icons"
+import svgLoader from "vite-svg-loader"
import UnoCSS from "unocss/vite"
/** 配置项文档:https://cn.vitejs.dev/config */
@@ -65,6 +66,8 @@ export default (configEnv: ConfigEnv): UserConfigExport => {
/** Vite 插件 */
plugins: [
vue(),
+ /** 将 SVG 静态图转化为 Vue 组件 */
+ svgLoader(),
/** SVG */
createSvgIconsPlugin({
iconDirs: [path.resolve(process.cwd(), "src/icons/svg")],