feat:vue-element-admin升级改造vue3

This commit is contained in:
有来技术
2021-11-21 23:38:54 +08:00
parent 0091a5fab2
commit fe8a7e2c31
25 changed files with 1463 additions and 164 deletions

View File

@@ -433,12 +433,12 @@ export default service
<script lang="ts">
import {defineComponent, computed} from 'vue'
import {userStore} from '@/store';
import {useStore} from '@/store';
export default defineComponent({
setup() {
const store = userStore()
const store = useStore()
const num = computed(()=>{
return store.state.count
})