diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.umirc.ts b/.umirc.ts
deleted file mode 100644
index 4ee6d79..0000000
--- a/.umirc.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import { defineConfig } from 'umi';
-
-export default defineConfig({
- nodeModulesTransform: {
- type: 'none',
- },
- routes: [
- { path: '/', component: '@/pages/index' },
- ],
- fastRefresh: {},
- history: {
- type: 'hash'
- },
-});
diff --git a/config/config.ts b/config/config.ts
new file mode 100644
index 0000000..3f53cc0
--- /dev/null
+++ b/config/config.ts
@@ -0,0 +1,23 @@
+import { defineConfig } from 'umi';
+
+export default defineConfig({
+ nodeModulesTransform: {
+ type: 'none', // all 慢 兼容好
+ },
+ routes: [
+ { path: '/', component: '@/pages/index' },
+ { path: '/about', component: '@/pages/about' },
+ ],
+ fastRefresh: {},
+ history: {
+ type: 'browser'
+ },
+ // 后续设置的配置
+ devServer: {
+ port: 3000, // 启动端口
+ },
+ title: 'UmiV3',// 网站标题
+ favicon: '/favicon.ico',// 网站图标
+ dynamicImport: {}, // 按需加载
+ mountElementId: 'root', // 指定 reactapp 渲染到元素的根元素 id
+});
diff --git a/public/favicon.ico b/public/favicon.ico
new file mode 100644
index 0000000..d34dcd8
Binary files /dev/null and b/public/favicon.ico differ
diff --git a/src/global.less b/src/global.less
new file mode 100644
index 0000000..995134a
--- /dev/null
+++ b/src/global.less
@@ -0,0 +1,4 @@
+body, html {
+ width: 100%;
+ min-height: 100vh;
+}
diff --git a/src/pages/document.ejs b/src/pages/document.ejs
new file mode 100644
index 0000000..56d81e4
--- /dev/null
+++ b/src/pages/document.ejs
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+