From b874509c73cbdea8eab37bb232ed3fd515b9a1a2 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期一, 27 十一月 2023 09:54:26 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/UBCS-WEB/src/views/monitor/log/localLog.vue | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Source/UBCS-WEB/src/views/monitor/log/localLog.vue b/Source/UBCS-WEB/src/views/monitor/log/localLog.vue index 90d9130..057a888 100644 --- a/Source/UBCS-WEB/src/views/monitor/log/localLog.vue +++ b/Source/UBCS-WEB/src/views/monitor/log/localLog.vue @@ -69,7 +69,7 @@ // menuWidth: 300, dialogClickModal: false, highlightCurrentRow: true, //琛岄�変腑鏃堕珮浜� - rowKey: "logName", //琛屾暟鎹殑 Key锛岀敤鏉ヤ紭鍖� Table 鐨勬覆鏌� + rowKey: "randomOid", //琛屾暟鎹殑 Key锛岀敤鏉ヤ紭鍖� Table 鐨勬覆鏌� column: [ { label: "鏈嶅姟鍚嶇О", @@ -121,11 +121,18 @@ }; } }, - methods: { - + methods: { + // 鍒ゆ柇瀹㈡埛绔墍鍦ㄧ殑鎿嶄綔绯荤粺骞冲彴 + isWindows() { + return navigator.platform.indexOf('Win') !== -1 + }, + // 鏍规嵁鎿嶄綔绯荤粺骞冲彴杩斿洖鐩稿簲鐨勮矾寰勫垎闅旂 + getPathSeparator() { + return this.isWindows() ? '\\' : '/' + }, downLoadLogFile(row){ this.downloadLoading = true; - let logPath = row.hasChildren ? row.logPath:row.logPath+"\\"+row.logName; + let logPath = row.hasChildren ? row.logPath:row.logPath+this.getPathSeparator()+row.logName; downLoadLog(Object.assign({},row,{logFullPaths:logPath})).then(res=>{ func.downloadFileByBlobHandler(res); this.downloadLoading = false; -- Gitblit v1.9.3