-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
41 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,49 @@ | ||
# README | ||
|
||
## About | ||
## ❔关于 | ||
|
||
This is the official Wails Vue-TS template. | ||
本项目是Scut校园网路由器管理客户端,基于 Vue3 + go + wails v3。 | ||
|
||
You can configure the project by editing `wails.json`. More information about the project settings can be found | ||
here: https://wails.io/docs/reference/project-config | ||
## ▶编译前端 | ||
|
||
## Live Development | ||
frontend目录是一个vue3项目,请先运行 | ||
|
||
To run in live development mode, run `wails dev` in the project directory. This will run a Vite development | ||
server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser | ||
and have access to your Go methods, there is also a dev server that runs on http://localhost:34115. Connect | ||
to this in your browser, and you can call your Go code from devtools. | ||
``` | ||
npm install | ||
``` | ||
|
||
## Building | ||
安装前端相关依赖。 | ||
|
||
To build a redistributable, production mode package, use `wails build`. | ||
然后运行 | ||
|
||
``` | ||
npm build | ||
``` | ||
|
||
构建前端。 | ||
|
||
## ▶编译应用程序 | ||
|
||
Wails 将利用*Vite*构建前端,故需要利用npm安装**Vite**,接着在MINGW64(安装git时会自动安装)运行 | ||
|
||
```shell | ||
wails dev | ||
``` | ||
|
||
完成首次环境配置。 | ||
|
||
此后,可通过 | ||
|
||
```sh | ||
wails build | ||
``` | ||
|
||
完成应用程序构建。 | ||
|
||
## ❗注意 | ||
|
||
若出现首页Avatar无法读取的情况,可先删除 | ||
|
||
> frontend/dist/MyAvatar.jpg | ||
然后重新构建。 |