From 00312b33e164d9c185e432d9b0e142197d5b038d Mon Sep 17 00:00:00 2001 From: ival <610568032@qq.com> Date: Mon, 23 Sep 2019 10:02:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9selected=20prop=20default?= =?UTF-8?q?=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmap/theme/fuzhou_01/menus/menuSection.vue | 4 +++- src/jmap/theme/fuzhou_01/menus/menuSignal.vue | 4 +++- src/jmap/theme/fuzhou_01/menus/menuStation.vue | 4 +++- src/jmap/theme/fuzhou_01/menus/menuStationControl.vue | 4 +++- src/jmap/theme/fuzhou_01/menus/menuStationStand.vue | 4 +++- src/jmap/theme/fuzhou_01/menus/menuSwitch.vue | 4 +++- src/jmap/theme/fuzhou_01/menus/statusDownTrainDetail.vue | 4 +++- src/jmap/theme/fuzhou_01/menus/statusUpTrainDetail.vue | 4 +++- src/utils/baseUrl.js | 4 ++-- 9 files changed, 26 insertions(+), 10 deletions(-) diff --git a/src/jmap/theme/fuzhou_01/menus/menuSection.vue b/src/jmap/theme/fuzhou_01/menus/menuSection.vue index 335570cc0..bebfc9d15 100644 --- a/src/jmap/theme/fuzhou_01/menus/menuSection.vue +++ b/src/jmap/theme/fuzhou_01/menus/menuSection.vue @@ -34,7 +34,9 @@ export default { props: { selected: { type: Object, - required: true + default() { + return null; + } } }, data() { diff --git a/src/jmap/theme/fuzhou_01/menus/menuSignal.vue b/src/jmap/theme/fuzhou_01/menus/menuSignal.vue index 25182ee61..8924000c7 100644 --- a/src/jmap/theme/fuzhou_01/menus/menuSignal.vue +++ b/src/jmap/theme/fuzhou_01/menus/menuSignal.vue @@ -40,7 +40,9 @@ export default { props: { selected: { type: Object, - required: true + default() { + return null; + } } }, data() { diff --git a/src/jmap/theme/fuzhou_01/menus/menuStation.vue b/src/jmap/theme/fuzhou_01/menus/menuStation.vue index 9b0c769a5..bd5ce0be0 100644 --- a/src/jmap/theme/fuzhou_01/menus/menuStation.vue +++ b/src/jmap/theme/fuzhou_01/menus/menuStation.vue @@ -31,7 +31,9 @@ export default { props: { selected: { type: Object, - required: true + default() { + return null; + } } }, data() { diff --git a/src/jmap/theme/fuzhou_01/menus/menuStationControl.vue b/src/jmap/theme/fuzhou_01/menus/menuStationControl.vue index 92a3aceeb..6e394cecd 100644 --- a/src/jmap/theme/fuzhou_01/menus/menuStationControl.vue +++ b/src/jmap/theme/fuzhou_01/menus/menuStationControl.vue @@ -15,7 +15,9 @@ export default { props: { selected: { type: Object, - required: true + default() { + return null; + } } }, data() { diff --git a/src/jmap/theme/fuzhou_01/menus/menuStationStand.vue b/src/jmap/theme/fuzhou_01/menus/menuStationStand.vue index e4f6e7d6c..6b7ea9466 100644 --- a/src/jmap/theme/fuzhou_01/menus/menuStationStand.vue +++ b/src/jmap/theme/fuzhou_01/menus/menuStationStand.vue @@ -40,7 +40,9 @@ export default { props: { selected: { type: Object, - required: true + default() { + return null; + } } }, data() { diff --git a/src/jmap/theme/fuzhou_01/menus/menuSwitch.vue b/src/jmap/theme/fuzhou_01/menus/menuSwitch.vue index 62e73bbb6..913517810 100644 --- a/src/jmap/theme/fuzhou_01/menus/menuSwitch.vue +++ b/src/jmap/theme/fuzhou_01/menus/menuSwitch.vue @@ -31,7 +31,9 @@ export default { props: { selected: { type: Object, - required: true + default() { + return null; + } } }, data() { diff --git a/src/jmap/theme/fuzhou_01/menus/statusDownTrainDetail.vue b/src/jmap/theme/fuzhou_01/menus/statusDownTrainDetail.vue index 324ca17fc..374b15bba 100644 --- a/src/jmap/theme/fuzhou_01/menus/statusDownTrainDetail.vue +++ b/src/jmap/theme/fuzhou_01/menus/statusDownTrainDetail.vue @@ -8,7 +8,9 @@ export default { props: { selected: { type: Object, - required: true + default() { + return null; + } } }, data() { diff --git a/src/jmap/theme/fuzhou_01/menus/statusUpTrainDetail.vue b/src/jmap/theme/fuzhou_01/menus/statusUpTrainDetail.vue index 77de68dfe..7f5e09c16 100644 --- a/src/jmap/theme/fuzhou_01/menus/statusUpTrainDetail.vue +++ b/src/jmap/theme/fuzhou_01/menus/statusUpTrainDetail.vue @@ -8,7 +8,9 @@ export default { props: { selected: { type: Object, - required: true + default() { + return null; + } } }, data() { diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 09e20008f..871e8ec9c 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -3,10 +3,10 @@ export function getBaseUrl() { let BASE_API; if (process.env.NODE_ENV === 'development') { // BASE_API = 'https://joylink.club/jlcloud'; - // BASE_API = 'https://test.joylink.club/jlcloud'; + BASE_API = 'https://test.joylink.club/jlcloud'; // BASE_API = 'http://192.168.3.5:9000'; // 袁琪 // BASE_API = 'http://192.168.3.6:9000'; // 旭强 - BASE_API = 'http://192.168.3.41:9000'; // 王兴杰 + // BASE_API = 'http://192.168.3.41:9000'; // 王兴杰 } else { BASE_API = process.env.VUE_APP_BASE_API; }