feat: 编辑态优化 (#444)

This commit is contained in:
Liang-Yaxin 2024-10-31 17:58:17 +08:00 committed by GitHub
parent 6c9ac33ea5
commit c93515d2bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,7 +16,9 @@
<script setup lang="ts">
import { watch, ref } from 'vue'
import { useRouter, useRoute } from 'vue-router'
import { useEditStore } from '@/management/stores/edit'
const editStore = useEditStore()
const { setCurrentEditOne } = editStore
const routes = [
{
text: '内容设置',
@ -38,6 +40,7 @@ watch(
activeRouter,
(val: any) => {
// query
setCurrentEditOne(null)
const query = route.query
router.push({ name: val, query })
},