初始化
This commit is contained in:
13
frontend/packages/js/mixins/paramsMixins.js
Normal file
13
frontend/packages/js/mixins/paramsMixins.js
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* @description: 封装组件内部的非props外部参数
|
||||
*/
|
||||
import { mapState } from 'vuex'
|
||||
export default {
|
||||
computed: {
|
||||
...mapState('bigScreen', {
|
||||
pageInfo: state => state.pageInfo,
|
||||
customTheme: state => state.pageInfo.pageConfig.customTheme,
|
||||
themeJson: state => state.pageInfo.pageConfig?.themeJson
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user