From 827bf0be496cd93295edffcd3580d900ffb98811 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Thu, 12 Dec 2024 14:32:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0FileToBeDownload=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E7=B1=BB=E5=9E=8B=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ServiceConfigurationActionLog.vue | 4 ++++ vue.config.js | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/ServiceConfigurationActionLog.vue b/src/components/ServiceConfigurationActionLog.vue index f9fbb81..6a4ecbd 100644 --- a/src/components/ServiceConfigurationActionLog.vue +++ b/src/components/ServiceConfigurationActionLog.vue @@ -91,5 +91,9 @@ async function handleLogChange() { }] }); } + else if ( 'FileToBeDownload' === props.log.response.$dataType ) { + var url = process.env.NODE_ENV === 'production' ? `${props.log.response.url}` : `http://localhost:80${props.log.response.url}`; + window.open(url); + } } \ No newline at end of file diff --git a/vue.config.js b/vue.config.js index 211a29f..f044904 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,8 +1,8 @@ const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ transpileDependencies: true, - publicPath : './', - configureWebpack : { - devtool:"source-map" + publicPath: './', + configureWebpack: { + devtool: "source-map", }, })