Browse Source

fix: 修复设计器预览空白

yanglzh 6 months ago
parent
commit
e4b46b2da5
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/views/designer/index.vue
  2. 1 1
      src/views/designer/view.vue

+ 1 - 1
src/views/designer/index.vue

@@ -117,7 +117,7 @@ const publish = (row: any, status: number) => {
 		cancelButtonText: '取消',
 		type: 'warning',
 	}).then(async () => {
-		await api.publish({ id: row.id, status, menuId: row.menuId || undefined })
+		await api.publish({ id: row.id, status})
 		ElMessage.success(`${status === 1 ? '发布' : '取消发布'}成功`)
 		getList(1)
 	})

+ 1 - 1
src/views/designer/view.vue

@@ -12,7 +12,7 @@ import { useRoute } from 'vue-router'
 
 const route = useRoute()
 
-const code = route.path.replace('/designerPage/', '')
+const code = route.path.replace('/designerPage/', '').replace('/designer/', '')
 
 const option = ref({})
 const rule = ref([])