Skip to content

Commit

Permalink
bug:修复前端组件漏洞 #2538
Browse files Browse the repository at this point in the history
  • Loading branch information
lannoy0523 committed Sep 4, 2024
1 parent d238f08 commit 3102bd3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/frontend/devops-op/vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ function resolve(dir) {

const envDist = process.env && process.env.dist ? process.env.dist : 'frontend'
const dist = resolve(`../${envDist}/${process.env.VUE_APP_BASE_DIR}`)
const targetDist = path.join(__dirname, `../${envDist}/ui`)
const fileName = process.env.NODE_ENV !== 'development' ? `${targetDist}/frontend#admin#index.html` : `index.html`

module.exports = {
publicPath: `/${process.env.VUE_APP_BASE_DIR}`,
Expand Down Expand Up @@ -61,7 +59,7 @@ module.exports = {
config
.plugin('html')
.use(new HtmlWebpackPlugin({
filename: fileName,
filename: process.env.NODE_ENV !== 'development' ? '../ui/frontend#admin#index.html' : 'index.html',
templateParameters: {
BASE_URL: `/`
},
Expand Down

0 comments on commit 3102bd3

Please sign in to comment.