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

fix(嵌入式): 权限问题测试
This commit is contained in:
dataeaseShu 2024-06-04 09:55:07 +08:00 committed by GitHub
commit ae7aff9fef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 1 deletions

View File

@ -69,6 +69,8 @@ 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

@ -305,7 +305,7 @@ onMounted(async () => {
}
let deTemplateData
if (createType === 'template') {
const templateParamsApply = JSON.parse(decodeURIComponent(Base64.decode(templateParams + '')))
const templateParamsApply = JSON.parse(Base64.decode(decodeURIComponent(templateParams + '')))
await decompressionPre(templateParamsApply, result => {
deTemplateData = result
})

View File

@ -282,6 +282,8 @@ 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