forked from github/dataease
fix(嵌入式): 嵌入式权限报错
This commit is contained in:
parent
70292d4299
commit
d313db4190
@ -69,8 +69,6 @@ export const interactiveStore = defineStore('interactive', {
|
|||||||
const method = apiMap[flag]
|
const method = apiMap[flag]
|
||||||
const res = await method(param)
|
const res = await method(param)
|
||||||
this.data[flag] = convertInteractive(res)
|
this.data[flag] = convertInteractive(res)
|
||||||
console.log('this.data[flag]', this.data[flag], flag, this, res, busiFlagMap, param)
|
|
||||||
|
|
||||||
if (flag === 0) {
|
if (flag === 0) {
|
||||||
wsCache.set('panel-weight', convertLocalStorage(this.data[flag]))
|
wsCache.set('panel-weight', convertLocalStorage(this.data[flag]))
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
import { useI18n } from '@/hooks/web/useI18n'
|
||||||
import { computed } from 'vue'
|
import { computed, onMounted } from 'vue'
|
||||||
import { imgUrlTrans } from '@/utils/imgUtils'
|
import { imgUrlTrans } from '@/utils/imgUtils'
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|
||||||
@ -56,6 +56,11 @@ const props = defineProps({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
console.log('template', props.template)
|
||||||
|
console.log('createAuth', props.createAuth)
|
||||||
|
})
|
||||||
|
|
||||||
const classBackground = computed(() => {
|
const classBackground = computed(() => {
|
||||||
return {
|
return {
|
||||||
width: props.width + 'px',
|
width: props.width + 'px',
|
||||||
|
@ -282,11 +282,9 @@ const state = reactive({
|
|||||||
|
|
||||||
const createAuth = computed(() => {
|
const createAuth = computed(() => {
|
||||||
const authMap = interactiveStore.getData
|
const authMap = interactiveStore.getData
|
||||||
console.log('authMap', authMap)
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
PANEL: authMap['0'].menuAuth && authMap['0'].anyManage,
|
PANEL: authMap['0']?.menuAuth && authMap['0']?.anyManage,
|
||||||
SCREEN: authMap['1'].menuAuth && authMap['1'].anyManage
|
SCREEN: authMap['1']?.menuAuth && authMap['1']?.anyManage
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user