From 32299db1636ad3b50c19acd99adbcd62f3dd79ba Mon Sep 17 00:00:00 2001 From: baiqi Date: Fri, 14 Jul 2023 18:04:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E4=B8=AD=E5=BF=83=E6=9F=A5=E7=9C=8B=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84=E5=9C=BA=E6=99=AF=E7=94=A8=E4=BE=8B-Error?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=B2=A1=E6=9C=89=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1027853 --user=白奇 【接口测试】任务中心查看失败的场景用例-Error页面没有数据 https://www.tapd.cn/55049933/s/1393807 --- api-test/frontend/public/index.html | 57 +++++++---------- api-test/frontend/src/i18n/index.js | 1 - api-test/frontend/vue.config.js | 14 +---- .../sdk-parent/frontend/public/index.html | 36 ++++------- framework/sdk-parent/frontend/src/main.js | 2 +- .../sdk-parent/frontend/src/micro-app.js | 1 - framework/sdk-parent/frontend/vue.config.js | 10 --- performance-test/frontend/public/index.html | 62 +++++++------------ performance-test/frontend/vue.config.js | 11 ---- project-management/frontend/public/index.html | 62 +++++++------------ project-management/frontend/vue.config.js | 11 ---- report-stat/frontend/public/index.html | 62 +++++++------------ report-stat/frontend/vue.config.js | 11 ---- system-setting/frontend/public/index.html | 62 +++++++------------ system-setting/frontend/vue.config.js | 11 ---- test-track/frontend/public/index.html | 62 +++++++------------ test-track/frontend/vue.config.js | 13 +--- workstation/frontend/public/index.html | 62 +++++++------------ workstation/frontend/vue.config.js | 11 ---- 19 files changed, 163 insertions(+), 398 deletions(-) diff --git a/api-test/frontend/public/index.html b/api-test/frontend/public/index.html index 29b20424c1..bc9da8bdf5 100644 --- a/api-test/frontend/public/index.html +++ b/api-test/frontend/public/index.html @@ -1,38 +1,25 @@ - - - - - - <%= htmlWebpackPlugin.options.title %> - <% if (process.env.NODE_ENV==='development' ) { %> - - - - - - - - <% } else { %> - - - - - - - - <% } %> - - - -
- - - + + + + + + + <%= htmlWebpackPlugin.options.title %> + + + + + + +
+ + + + \ No newline at end of file diff --git a/api-test/frontend/src/i18n/index.js b/api-test/frontend/src/i18n/index.js index bd428f05a6..edc97a11fc 100644 --- a/api-test/frontend/src/i18n/index.js +++ b/api-test/frontend/src/i18n/index.js @@ -1,6 +1,5 @@ import Vue from 'vue'; import VueI18n from 'vue-i18n'; - Vue.use(VueI18n); // 直接加载翻译的语言文件 const LOADED_LANGUAGES = ['zh-CN', 'zh-TW', 'en-US']; diff --git a/api-test/frontend/vue.config.js b/api-test/frontend/vue.config.js index 22b1080c5e..61fd300a9d 100644 --- a/api-test/frontend/vue.config.js +++ b/api-test/frontend/vue.config.js @@ -15,7 +15,7 @@ module.exports = defineConfig({ client: { webSocketTransport: 'sockjs', overlay: false, - }, + }, allowedHosts: 'all', webSocketServer: 'sockjs', proxy: { @@ -69,17 +69,6 @@ module.exports = defineConfig({ filename: `js/${name}-[name].[contenthash:8].js`, chunkFilename: `js/${name}-[name].[contenthash:8].js`, }, - externals: { - qiankun: 'qiankun', - vue: 'Vue', - 'element-ui': 'ELEMENT', - 'vue-router': 'VueRouter', - // 'echarts': 'echarts', - // 'echarts/core': 'echarts', // TODO:外链使用的话需要改造导入及 vue-echarts 的源码 - // brace: 'brace', // TODO:暂时未发现能外链的方法,本体包未提供cdn 外链形式的包 - 'mavon-editor': 'MavonEditor', - 'vue-shepherd': 'VueShepherd', - }, optimization: { splitChunks: { cacheGroups: { @@ -184,7 +173,6 @@ module.exports = defineConfig({ .options({ symbolId: 'icon-[name]', }); - if (process.env.NODE_ENV === 'analyze') { config.plugin('webpack-report').use(BundleAnalyzerPlugin, [ { diff --git a/framework/sdk-parent/frontend/public/index.html b/framework/sdk-parent/frontend/public/index.html index ba453c19b4..035f22a53c 100644 --- a/framework/sdk-parent/frontend/public/index.html +++ b/framework/sdk-parent/frontend/public/index.html @@ -1,34 +1,22 @@ + - <% if (process.env.NODE_ENV==='development' ) { %> - - - - - - - - <% } else { %> - - - - - - - - <% } %> + + - -
- + +
+ - + + \ No newline at end of file diff --git a/framework/sdk-parent/frontend/src/main.js b/framework/sdk-parent/frontend/src/main.js index 237f2a0b59..568fcfd1a7 100644 --- a/framework/sdk-parent/frontend/src/main.js +++ b/framework/sdk-parent/frontend/src/main.js @@ -38,4 +38,4 @@ new Vue({ router, pinia, render: h => h(App), -}) +}) \ No newline at end of file diff --git a/framework/sdk-parent/frontend/src/micro-app.js b/framework/sdk-parent/frontend/src/micro-app.js index d15c1f0456..4b82d959e0 100644 --- a/framework/sdk-parent/frontend/src/micro-app.js +++ b/framework/sdk-parent/frontend/src/micro-app.js @@ -42,7 +42,6 @@ getApps() app.entry = app.entry.replace(/127\.0\.0\.1:\d+/g, window.location.host + "/" + app.name); }); } - //注册子应用 registerMicroApps(apps); //启动 diff --git a/framework/sdk-parent/frontend/vue.config.js b/framework/sdk-parent/frontend/vue.config.js index 8ff9d4d5d6..e90b72d425 100644 --- a/framework/sdk-parent/frontend/vue.config.js +++ b/framework/sdk-parent/frontend/vue.config.js @@ -36,16 +36,6 @@ module.exports = defineConfig({ "@": resolve("src"), }, }, - externals: { - qiankun: "qiankun", - vue: "Vue", - "vue-router": "VueRouter", - // 'echarts': 'echarts', - // 'echarts/core': 'echarts', // TODO:外链使用的话需要改造导入及 vue-echarts 的源码 - // brace: 'brace', // TODO:暂时未发现能外链的方法,本体包未提供cdn 外链形式的包 - "element-ui": "ELEMENT", - "vue-shepherd": "VueShepherd", - }, optimization: { splitChunks: { cacheGroups: { diff --git a/performance-test/frontend/public/index.html b/performance-test/frontend/public/index.html index 39a6a51f6c..6049bc7437 100644 --- a/performance-test/frontend/public/index.html +++ b/performance-test/frontend/public/index.html @@ -1,44 +1,24 @@ - - - - - - <%= htmlWebpackPlugin.options.title %> - <% if (process.env.NODE_ENV==='development' ) { %> - - - - - - - - <% } else { %> - - - - - - - - <% } %> - - - +
+ + + + \ No newline at end of file diff --git a/performance-test/frontend/vue.config.js b/performance-test/frontend/vue.config.js index c9bdcaf4a8..a4ebc53c3a 100644 --- a/performance-test/frontend/vue.config.js +++ b/performance-test/frontend/vue.config.js @@ -67,17 +67,6 @@ module.exports = defineConfig({ filename: `js/${name}-[name].[contenthash:8].js`, chunkFilename: `js/${name}-[name].[contenthash:8].js`, }, - externals: { - qiankun: "qiankun", - vue: "Vue", - "element-ui": "ELEMENT", - "vue-router": "VueRouter", - // 'echarts': 'echarts', - // 'echarts/core': 'echarts', // TODO:外链使用的话需要改造导入及 vue-echarts 的源码 - // brace: 'brace', // TODO:暂时未发现能外链的方法,本体包未提供cdn 外链形式的包 - "mavon-editor": "MavonEditor", - "vue-shepherd": "VueShepherd", - }, optimization: { splitChunks: { cacheGroups: { diff --git a/project-management/frontend/public/index.html b/project-management/frontend/public/index.html index 39a6a51f6c..6049bc7437 100644 --- a/project-management/frontend/public/index.html +++ b/project-management/frontend/public/index.html @@ -1,44 +1,24 @@ - - - - - - <%= htmlWebpackPlugin.options.title %> - <% if (process.env.NODE_ENV==='development' ) { %> - - - - - - - - <% } else { %> - - - - - - - - <% } %> - - - +
+ + + + \ No newline at end of file diff --git a/project-management/frontend/vue.config.js b/project-management/frontend/vue.config.js index 463c5a7c69..d358b706e1 100644 --- a/project-management/frontend/vue.config.js +++ b/project-management/frontend/vue.config.js @@ -52,17 +52,6 @@ module.exports = defineConfig({ filename: `js/${name}-[name].[contenthash:8].js`, chunkFilename: `js/${name}-[name].[contenthash:8].js`, }, - externals: { - qiankun: "qiankun", - vue: "Vue", - "element-ui": "ELEMENT", - "vue-router": "VueRouter", - // 'echarts': 'echarts', - // 'echarts/core': 'echarts', // TODO:外链使用的话需要改造导入及 vue-echarts 的源码 - // brace: 'brace', // TODO:暂时未发现能外链的方法,本体包未提供cdn 外链形式的包 - "mavon-editor": "MavonEditor", - "vue-shepherd": "VueShepherd", - }, optimization: { splitChunks: { cacheGroups: { diff --git a/report-stat/frontend/public/index.html b/report-stat/frontend/public/index.html index 39a6a51f6c..6049bc7437 100644 --- a/report-stat/frontend/public/index.html +++ b/report-stat/frontend/public/index.html @@ -1,44 +1,24 @@ - - - - - - <%= htmlWebpackPlugin.options.title %> - <% if (process.env.NODE_ENV==='development' ) { %> - - - - - - - - <% } else { %> - - - - - - - - <% } %> - - - +
+ + + + \ No newline at end of file diff --git a/report-stat/frontend/vue.config.js b/report-stat/frontend/vue.config.js index f6ac8b59df..1fcbdd51bc 100644 --- a/report-stat/frontend/vue.config.js +++ b/report-stat/frontend/vue.config.js @@ -63,17 +63,6 @@ module.exports = defineConfig({ filename: `js/${name}-[name].[contenthash:8].js`, chunkFilename: `js/${name}-[name].[contenthash:8].js`, }, - externals: { - qiankun: "qiankun", - vue: "Vue", - "element-ui": "ELEMENT", - "vue-router": "VueRouter", - // 'echarts': 'echarts', - // 'echarts/core': 'echarts', // TODO:外链使用的话需要改造导入及 vue-echarts 的源码 - // brace: 'brace', // TODO:暂时未发现能外链的方法,本体包未提供cdn 外链形式的包 - "mavon-editor": "MavonEditor", - "vue-shepherd": "VueShepherd", - }, optimization: { splitChunks: { cacheGroups: { diff --git a/system-setting/frontend/public/index.html b/system-setting/frontend/public/index.html index 39a6a51f6c..6049bc7437 100644 --- a/system-setting/frontend/public/index.html +++ b/system-setting/frontend/public/index.html @@ -1,44 +1,24 @@ - - - - - - <%= htmlWebpackPlugin.options.title %> - <% if (process.env.NODE_ENV==='development' ) { %> - - - - - - - - <% } else { %> - - - - - - - - <% } %> - - - +
+ + + + \ No newline at end of file diff --git a/system-setting/frontend/vue.config.js b/system-setting/frontend/vue.config.js index c8a812a50a..e62b10741b 100644 --- a/system-setting/frontend/vue.config.js +++ b/system-setting/frontend/vue.config.js @@ -52,17 +52,6 @@ module.exports = defineConfig({ filename: `js/${name}-[name].[contenthash:8].js`, chunkFilename: `js/${name}-[name].[contenthash:8].js`, }, - externals: { - qiankun: "qiankun", - vue: "Vue", - "element-ui": "ELEMENT", - "vue-router": "VueRouter", - // 'echarts': 'echarts', - // 'echarts/core': 'echarts', // TODO:外链使用的话需要改造导入及 vue-echarts 的源码 - // brace: 'brace', // TODO:暂时未发现能外链的方法,本体包未提供cdn 外链形式的包 - "mavon-editor": "MavonEditor", - "vue-shepherd": "VueShepherd", - }, optimization: { splitChunks: { cacheGroups: { diff --git a/test-track/frontend/public/index.html b/test-track/frontend/public/index.html index 39a6a51f6c..6049bc7437 100644 --- a/test-track/frontend/public/index.html +++ b/test-track/frontend/public/index.html @@ -1,44 +1,24 @@ - - - - - - <%= htmlWebpackPlugin.options.title %> - <% if (process.env.NODE_ENV==='development' ) { %> - - - - - - - - <% } else { %> - - - - - - - - <% } %> - - - +
+ + + + \ No newline at end of file diff --git a/test-track/frontend/vue.config.js b/test-track/frontend/vue.config.js index a521f14508..1ee59b6cab 100644 --- a/test-track/frontend/vue.config.js +++ b/test-track/frontend/vue.config.js @@ -12,7 +12,7 @@ function resolve(dir) { return path.join(__dirname, dir); } -const proxyUrl = ' http://localhost:8005' +const proxyUrl = 'http://localhost:8005' module.exports = defineConfig({ publicPath: "/", @@ -78,17 +78,6 @@ module.exports = defineConfig({ filename: `js/${name}-[name].[contenthash:8].js`, chunkFilename: `js/${name}-[name].[contenthash:8].js`, }, - externals: { - qiankun: "qiankun", - vue: "Vue", - "element-ui": "ELEMENT", - "vue-router": "VueRouter", - // 'echarts': 'echarts', - // 'echarts/core': 'echarts', // TODO:外链使用的话需要改造导入及 vue-echarts 的源码 - // brace: 'brace', // TODO:暂时未发现能外链的方法,本体包未提供cdn 外链形式的包 - "mavon-editor": "MavonEditor", - "vue-shepherd": "VueShepherd", - }, optimization: { splitChunks: { cacheGroups: { diff --git a/workstation/frontend/public/index.html b/workstation/frontend/public/index.html index 39a6a51f6c..6049bc7437 100644 --- a/workstation/frontend/public/index.html +++ b/workstation/frontend/public/index.html @@ -1,44 +1,24 @@ - - - - - - <%= htmlWebpackPlugin.options.title %> - <% if (process.env.NODE_ENV==='development' ) { %> - - - - - - - - <% } else { %> - - - - - - - - <% } %> - - - +
+ + + + \ No newline at end of file diff --git a/workstation/frontend/vue.config.js b/workstation/frontend/vue.config.js index ef31654bd1..0b2f4f47a8 100644 --- a/workstation/frontend/vue.config.js +++ b/workstation/frontend/vue.config.js @@ -50,17 +50,6 @@ module.exports = defineConfig({ filename: `js/${name}-[name].[contenthash:8].js`, chunkFilename: `js/${name}-[name].[contenthash:8].js`, }, - externals: { - qiankun: "qiankun", - vue: "Vue", - "element-ui": "ELEMENT", - "vue-router": "VueRouter", - // 'echarts': 'echarts', - // 'echarts/core': 'echarts', // TODO:外链使用的话需要改造导入及 vue-echarts 的源码 - // brace: 'brace', // TODO:暂时未发现能外链的方法,本体包未提供cdn 外链形式的包 - "mavon-editor": "MavonEditor", - "vue-shepherd": "VueShepherd", - }, optimization: { splitChunks: { cacheGroups: {