fix: 路由无法正常跳转 #142
This commit is contained in:
parent
12808714c1
commit
7048a134be
10
README.md
10
README.md
@ -38,17 +38,17 @@
|
|||||||
* 在 `终端` 中输入:
|
* 在 `终端` 中输入:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 安装 yarn
|
# 安装 pnpm
|
||||||
npm install -g yarn
|
npm install -g pnpm
|
||||||
|
|
||||||
# 安装依赖
|
# 安装依赖
|
||||||
yarn install
|
pnpm install
|
||||||
|
|
||||||
# 预览
|
# 预览
|
||||||
yarn dev
|
pnpm dev
|
||||||
|
|
||||||
# 构建
|
# 构建
|
||||||
yarn build
|
pnpm build
|
||||||
```
|
```
|
||||||
> 构建完成后,静态资源会在 **`dist` 目录** 中生成,可将 **`dist` 文件夹下的文件**上传至服务器,也可使用 `Vercel` 等托管平台一键导入并自动部署
|
> 构建完成后,静态资源会在 **`dist` 目录** 中生成,可将 **`dist` 文件夹下的文件**上传至服务器,也可使用 `Vercel` 等托管平台一键导入并自动部署
|
||||||
|
|
||||||
|
23
README_EN.md
23
README_EN.md
@ -31,11 +31,28 @@ Simple little homepage, had enough of the original one and made a new one
|
|||||||
|
|
||||||
### Deployment
|
### 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
|
```bash
|
||||||
yarn install
|
# Install pnpm
|
||||||
yarn dev
|
npm install -g pnpm
|
||||||
yarn build
|
|
||||||
|
# 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`.
|
> 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
|
### Weather
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
"unplugin-auto-import": "^0.11.2",
|
"unplugin-auto-import": "^0.11.2",
|
||||||
"unplugin-vue-components": "^0.22.8",
|
"unplugin-vue-components": "^0.22.8",
|
||||||
"vite": "^3.1.0",
|
"vite": "^3.1.0",
|
||||||
"vite-plugin-html": "^3.2.0",
|
"vite-plugin-html": "^3.0.6",
|
||||||
"vite-plugin-pwa": "^0.14.1"
|
"vite-plugin-pwa": "^0.14.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
4379
pnpm-lock.yaml
Normal file
4379
pnpm-lock.yaml
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user