Skip to content

Commit

Permalink
feat: 模式改为hash 构建方式修改
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Aug 22, 2022
1 parent 827eed3 commit 7601f65
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Build
run: |
npm install
npm run build
npm run build-github
# 查看 workflow 的文档来获取更多信息
# @see https://github.com/crazy-max/ghaction-github-pages
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ git clone https://github.com/meadmin-cn/meadmin-template.git
```

## 贡献代码

规范文档正在整理中

## 打赏作者
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"format": "prettier --write --cache .",
"dev": "vite",
"build": "vite build -m prod && npm run type-check",
"build-github": "vite build -m prod --base=/meadmin-template/ && npm run type-check",
"type-check": "vue-tsc --noEmit",
"preview": "vite preview",
"release": "release-it",
Expand Down
4 changes: 2 additions & 2 deletions src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
import { createRouter, createWebHashHistory, createWebHistory, RouteRecordRaw } from 'vue-router';
import { PageEnum } from '@/enums/pageEnum';
import { App } from 'vue';
import { setupRouterGuard } from './guard';
Expand Down Expand Up @@ -46,7 +46,7 @@ export const constantRoutes: RouteRecordRaw[] = [
},
];
export const router = createRouter({
history: createWebHistory(),
history: createWebHashHistory(), //createWebHistory(),
routes: constantRoutes,
});

Expand Down

0 comments on commit 7601f65

Please sign in to comment.