fix: 路由无法正常跳转 #142

This commit is contained in:
imsyy 2023-06-25 14:45:38 +08:00
parent 12808714c1
commit 7048a134be
5 changed files with 4405 additions and 3621 deletions

View File

@ -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` 等托管平台一键导入并自动部署

View File

@ -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

View File

@ -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"
}
}

4379
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff

3612
yarn.lock

File diff suppressed because it is too large Load Diff