diff --git a/.env.development b/.env.development index de5f62d..639b029 100644 --- a/.env.development +++ b/.env.development @@ -5,8 +5,8 @@ VUE_APP_TITLE = 扫码连网 ENV = 'development' # 扫码连网/开发环境 -# VUE_APP_BASE_API = 'https://localhost:9038' -VUE_APP_BASE_API = 'https://www.jichuanglanhai.com:9038' +VUE_APP_BASE_API = 'https://192.168.0.105:9038' +# VUE_APP_BASE_API = 'https://www.jichuanglanhai.com:9038' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/components/VideoUpload/index.vue b/src/components/VideoUpload/index.vue index dda77b3..82c6893 100644 --- a/src/components/VideoUpload/index.vue +++ b/src/components/VideoUpload/index.vue @@ -67,7 +67,6 @@ export default { watch: { value: { handler(val) { - console.log("会显示", val); if (val) { this.videoForm.showVideoPath = this.baseUrl + val; } @@ -81,6 +80,7 @@ export default { handleClose() { this.videoForm.showVideoPath = ""; this.videoFlag = false; + this.$emit("getDuration", null); //时长 this.$emit("input", ""); }, //上传前回调 @@ -105,16 +105,19 @@ export default { this.videoUploadPercent = file.percentage.toFixed(0) * 1; }, //上传成功回调 - handleVideoSuccess(res, file) { + handleVideoSuccess(res, file, fileList) { this.isShowUploadVideo = true; this.videoFlag = false; this.videoUploadPercent = 0; this.videoForm.showVideoPath = this.baseUrl + res.fileName; + this.$emit("getDuration", file.response.duration); //时长 this.$emit("input", res.fileName); this.$modal.msgSuccess("上传成功"); }, // 上传失败 handleUploadError() { + this.$emit("getDuration", null); //时长 + this.$emit("input", ""); this.$modal.msgError("上传视频失败,请重试"); this.$modal.closeLoading(); }, diff --git a/src/views/netEwm/net/index.vue b/src/views/netEwm/net/index.vue index fb29347..9cc09d2 100644 --- a/src/views/netEwm/net/index.vue +++ b/src/views/netEwm/net/index.vue @@ -161,7 +161,7 @@ >
-
WI-FI名称:{{ code.netName }}
+
WI-FI名称:{{ code.wifiName }}