wanshenmean
2026-01-28 6da78f667c6314148a871c07748d42895b65d79c
Code/WMS/WIDESEA_WMSClient/README.md
@@ -1,41 +1,30 @@
# vol.vue3
## Project setup
```
npm install
Install dependencies:
```bash
yarn install
```
### Compiles and hot-reloads for development
```
npm run serve
Development (Vite):
```bash
yarn dev
```
### Compiles and minifies for production
```
npm run build
Build for production:
```bash
yarn build
```
### Run your unit tests
```
npm run test:unit
Preview production build locally:
```bash
yarn preview
```
### Lints and fixes files
```
npm run lint
```
Notes:
- This project was migrated from Vue CLI / webpack to Vite. Source files and imports were adjusted for Vite (explicit `.vue` imports, alias `@` configured).
- Existing `vue.config.js` and Vue CLI dev dependencies remain for compatibility; you can remove them after verifying the Vite setup.
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
### npm run serve启动异常:
    使用cmd输入node -v查看版本,如果是18.+版本,请将package.json中第五行scripts中的内容替换为:
"scripts": {
    "serve": " SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
    "build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
    "test:unit": "vue-cli-service test:unit",
    "lint": "vue-cli-service lint"
}
If you previously used `npm run serve` with Vue CLI, switch to the Vite commands above.