@@ -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)
})
@@ -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([])