Browse Source

添加FileToBeDownload返回类型支持

master
zhaohe 8 months ago
parent
commit
827bf0be49
  1. 4
      src/components/ServiceConfigurationActionLog.vue
  2. 6
      vue.config.js

4
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);
}
}
</script>

6
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",
},
})
Loading…
Cancel
Save