前端小程序
这个提交包含在:
18
xgsc.gynhc.com_wx/vue.config.js
普通文件
18
xgsc.gynhc.com_wx/vue.config.js
普通文件
@@ -0,0 +1,18 @@
|
||||
const TransformPages = require('uni-read-pages')
|
||||
const {
|
||||
webpack
|
||||
} = new TransformPages()
|
||||
module.exports = {
|
||||
configureWebpack: {
|
||||
plugins: [
|
||||
new webpack.DefinePlugin({
|
||||
ROUTES: webpack.DefinePlugin.runtimeValue(() => {
|
||||
const tfPages = new TransformPages({
|
||||
includes: ['path', 'name', 'aliasPath', 'meta']
|
||||
});
|
||||
return JSON.stringify(tfPages.routes)
|
||||
}, true)
|
||||
})
|
||||
]
|
||||
}
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户