Skip to content

Commit

Permalink
fix: 路由无法正常跳转 imsyy#142
Browse files Browse the repository at this point in the history
  • Loading branch information
imsyy committed Jun 25, 2023
1 parent 1280871 commit 7048a13
Show file tree
Hide file tree
Showing 5 changed files with 4,405 additions and 3,621 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@
*`终端` 中输入:

```bash
# 安装 yarn
npm install -g yarn
# 安装 pnpm
npm install -g pnpm

# 安装依赖
yarn install
pnpm install

# 预览
yarn dev
pnpm dev

# 构建
yarn build
pnpm build
```
> 构建完成后,静态资源会在 **`dist` 目录** 中生成,可将 **`dist` 文件夹下的文件**上传至服务器,也可使用 `Vercel` 等托管平台一键导入并自动部署
Expand Down
23 changes: 20 additions & 3 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,28 @@ Simple little homepage, had enough of the original one and made a new one

### Deployment

* **Installation** [node.js](https://nodejs.org/zh-cn/) **Environment**

> node > 16.16.0
> npm > 8.15.0
* Then run the `cmd` terminal with **administrator privileges** and `cd` to the project root directory
* In the `terminal` type:

```bash
yarn install
yarn dev
yarn build
# Install pnpm
npm install -g pnpm

# Install the dependencies
pnpm install

# Preview
pnpm dev

# Build
pnpm build
```

> Once the build is complete, the files in the `dist` folder can be uploaded to the server or imported and automatically deployed with one click using a hosting platform such as `Vercel`.
### Weather
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"unplugin-auto-import": "^0.11.2",
"unplugin-vue-components": "^0.22.8",
"vite": "^3.1.0",
"vite-plugin-html": "^3.2.0",
"vite-plugin-html": "^3.0.6",
"vite-plugin-pwa": "^0.14.1"
}
}
Loading

0 comments on commit 7048a13

Please sign in to comment.