From 8fdd10d1c2723ead1d2c3b232f64f292ba3ce1cc Mon Sep 17 00:00:00 2001 From: che_shuai <che_shuai@massclouds> Date: 星期一, 24 七月 2023 14:10:46 +0800 Subject: [PATCH] 修复在国标级联选择通道时,如果添加通道到跟平台根目录(即平台本身),无法触发目录变更事件问题.详见 https://github.com/648540858/wvp-GB28181-pro/issues/958 --- web_src/src/components/dialog/importChannel.vue | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/web_src/src/components/dialog/importChannel.vue b/web_src/src/components/dialog/importChannel.vue index 922809e..e61b642 100644 --- a/web_src/src/components/dialog/importChannel.vue +++ b/web_src/src/components/dialog/importChannel.vue @@ -16,6 +16,7 @@ drag :action="uploadUrl" name="file" + :headers="headers" :on-success="successHook" :on-error="errorHook" > @@ -33,6 +34,8 @@ import ShowErrorData from './importChannelShowErrorData.vue' +import userService from "../service/UserService"; + export default { name: "importChannel", components: { @@ -45,9 +48,12 @@ showDialog: false, isLoging: false, isEdit: false, - errorStreams: null, - errorGBIds: null, - uploadUrl: process.env.NODE_ENV === 'development'?`debug/api/push/upload`:`api/push/upload`, + errorStreams: [], + errorGBIds: [], + headers: { + "access-token": userService.getToken() + }, + uploadUrl: process.env.NODE_ENV === 'development'? `http://127.0.0.1:8080/debug/api/push/upload`: (window.baseUrl ? window.baseUrl : "") + `/api/push/upload`, }; }, methods: { -- Gitblit v1.8.0