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 282a74e commit d238f08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/frontend/devops-op/vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ 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 @@ -59,7 +61,7 @@ module.exports = {
config
.plugin('html')
.use(new HtmlWebpackPlugin({
filename: process.env.NODE_ENV !== 'development' ? '../ui/frontend#admin#index.html' : 'index.html',
filename: fileName,
templateParameters: {
BASE_URL: `/`
},
Expand Down

0 comments on commit d238f08

Please sign in to comment.