Merge pull request #10071 from dataease/pr@dev-v2_st

fix(嵌入式): 嵌入式权限报错
This commit is contained in:
dataeaseShu 2024-06-04 14:10:36 +08:00 committed by GitHub
commit 39d6ac29e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 7 deletions

View File

@ -69,8 +69,6 @@ export const interactiveStore = defineStore('interactive', {
const method = apiMap[flag]
const res = await method(param)
this.data[flag] = convertInteractive(res)
console.log('this.data[flag]', this.data[flag], flag, this, res, busiFlagMap, param)
if (flag === 0) {
wsCache.set('panel-weight', convertLocalStorage(this.data[flag]))
}

View File

@ -23,7 +23,7 @@
<script setup lang="ts">
import { useI18n } from '@/hooks/web/useI18n'
import { computed } from 'vue'
import { computed, onMounted } from 'vue'
import { imgUrlTrans } from '@/utils/imgUtils'
const { t } = useI18n()
@ -56,6 +56,11 @@ const props = defineProps({
}
})
onMounted(() => {
console.log('template', props.template)
console.log('createAuth', props.createAuth)
})
const classBackground = computed(() => {
return {
width: props.width + 'px',

View File

@ -282,11 +282,9 @@ const state = reactive({
const createAuth = computed(() => {
const authMap = interactiveStore.getData
console.log('authMap', authMap)
return {
PANEL: authMap['0'].menuAuth && authMap['0'].anyManage,
SCREEN: authMap['1'].menuAuth && authMap['1'].anyManage
PANEL: authMap['0']?.menuAuth && authMap['0']?.anyManage,
SCREEN: authMap['1']?.menuAuth && authMap['1']?.anyManage
}
})