Skip to content

Commit 9bfb234

Browse files
committed
优化配置
1 parent 0ae1967 commit 9bfb234

3 files changed

Lines changed: 5 additions & 12 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ npm run test
2525
npm run lint
2626
```
2727

28-
### Customize configuration
29-
See [Configuration Reference](https://cli.vuejs.org/config/).
28+
### 提示
29+
预览功能需启动 form-design-h5 项目

‎src/assets/js/api.js‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
1-
// import Vue from "vue";
2-
3-
// const vue = new Vue();
4-
51
export default {
6-
previewUrl: "http://192.168.218.113:3000",
2+
previewUrl: "http://" + window.location.hostname + ":3000", //根据实际情况修改为 form-design-h5 项目地址
73
env() {
84
if (process.env.NODE_ENV === "development") return "development";
95
if (window.location.href.includes("192.168")) return "test";
106
return "production";
117
},
128
apiUrl() {
13-
return "http://test-api.junjue888.com/";
14-
// if (this.env() === "development") return "http://192.168.218.185:8022/";
15-
// if (this.env() === 'test') return "http://test-api.junjue888.com/";
16-
// return "http://api.junjue888.com/";
9+
return "http://xxx.com/";
1710
}
1811
};

‎src/assets/json/page-config.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"pageConfig": {
3-
"title": "骏伯网络",
3+
"title": "云忆网络",
44
"background": "#fff",
55
"theme": null,
66
"matomoId": null

0 commit comments

Comments
 (0)