50 lines
1.0 KiB
Markdown
50 lines
1.0 KiB
Markdown
# tabula-rase-project
|
||
|
||
This template should help get you started developing with Vue 3 in Vite.
|
||
|
||
## Recommended IDE Setup
|
||
|
||
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
|
||
|
||
## Customize configuration
|
||
|
||
See [Vite Configuration Reference](https://vite.dev/config/).
|
||
|
||
## Project Setup
|
||
|
||
```sh
|
||
npm install
|
||
```
|
||
|
||
### Compile and Hot-Reload for Development
|
||
|
||
```sh
|
||
npm run dev
|
||
```
|
||
|
||
### Compile and Minify for Production
|
||
|
||
```sh
|
||
npm run build
|
||
```
|
||
|
||
|
||
## 注意事项
|
||
|
||
1.在本地启动项目时,要修改签名的host,在utils/tools.js
|
||
|
||
```
|
||
// 获取host(从baseURL或当前域名) 本地启动要求host为xsynergy.gxtech.ltd
|
||
// let host = 'xsynergy.gxtech.ltd';
|
||
let host = '';
|
||
if (config.baseURL) {
|
||
try {
|
||
const urlObj = new URL(config.baseURL);
|
||
host = urlObj.host;
|
||
} catch (e) {
|
||
host = window.location.host;
|
||
}
|
||
} else {
|
||
host = window.location.host;
|
||
}
|
||
``` |