Skip to content

Commit

Permalink
feat: 编辑态优化 (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
Liang-Yaxin authored and sudoooooo committed Dec 19, 2024
1 parent 2b4a6ec commit 7d77e16
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/src/management/pages/edit/pages/edit/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: '内容设置',
Expand All @@ -38,6 +40,7 @@ watch(
activeRouter,
(val: any) => {
// 避免编辑页刷新丢失query
setCurrentEditOne(null)
const query = route.query
router.push({ name: val, query })
},
Expand Down

0 comments on commit 7d77e16

Please sign in to comment.