|
@@ -2,13 +2,33 @@
|
|
|
|
|
|
## 启动项目
|
|
|
|
|
|
+### . 安装依赖
|
|
|
+
|
|
|
+1. 删除package.json中的 saga包
|
|
|
+
|
|
|
```
|
|
|
-yarn install 或 npm i
|
|
|
+
|
|
|
+ "@saga-web/base": "2.1.27",
|
|
|
+ "@saga-web/big": "1.0.120",
|
|
|
+ "@saga-web/draw": "2.1.110",
|
|
|
+ "@saga-web/feng-map": "1.0.52",
|
|
|
+ "@saga-web/graph": "2.1.136",
|
|
|
+```
|
|
|
+
|
|
|
+2. 安装依赖 npm i
|
|
|
+3. 将删除的saga包还原
|
|
|
+4. npm换源到 `http://dev.dp.sagacloud.cn:8082/repository/npm-saga/`
|
|
|
+
|
|
|
+``` shell
|
|
|
+ npm config set registry http://dev.dp.sagacloud.cn:8082/repository/npm-saga/
|
|
|
```
|
|
|
|
|
|
+5. 安装saga依赖 npm i
|
|
|
+
|
|
|
### 启动开发环境
|
|
|
|
|
|
```
|
|
|
+
|
|
|
yarn serve 或 npm run serve
|
|
|
```
|
|
|
|
|
@@ -36,7 +56,6 @@ npm run publish # 只能发布到阿里云环境(需要外网支持)
|
|
|
|
|
|
- - -
|
|
|
|
|
|
-
|
|
|
### 目录结构
|
|
|
|
|
|
``` shell
|
|
@@ -97,3 +116,8 @@ npm run publish # 只能发布到阿里云环境(需要外网支持)
|
|
|
|
|
|
}
|
|
|
```
|
|
|
+
|
|
|
+### 开发注意事项
|
|
|
+
|
|
|
+1. 广场,用户等参数,是由工程管理APP,通过cordova插件传入,故打包部署后,只能在APP内部访问该项目
|
|
|
+2. 开发时,在APP.vue中进行模拟广场,用户等参数,进行开发.(handleUrl方法内, 开发环境,参数修改)
|