Refactor API requests and update component imports
This commit is contained in:
@ -37,7 +37,7 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import { Search } from '@element-plus/icons-vue'
|
||||
import useUserStore from '@/store/user'
|
||||
import useUserStore from '~/store/user'
|
||||
const userStore = useUserStore()
|
||||
|
||||
const emits = defineEmits(['search'])
|
||||
@ -48,7 +48,7 @@
|
||||
// 是否登录
|
||||
if (!userStore.token) return ElMessage.error('请先登录')
|
||||
// 新开窗口 用router跳转 新窗口打开
|
||||
window.open('/toolbox-publish', '_blank')
|
||||
navigateTo('/toolbox-publish')
|
||||
}
|
||||
|
||||
const search = () => {
|
||||
|
||||
Reference in New Issue
Block a user