Skip to content

Commit 1e209a7

Browse files
committed
fix: Table组件注册为全局组件报错问题,存在对pinia的提前引用
1 parent 1123ec9 commit 1e209a7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/components/Table/src/components/TableActions.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ import { useAppStore } from '@/store/modules/app'
77
import { TableColumn } from '../types'
88
import ColumnSetting from './ColumnSetting.vue'
99
10-
const appStore = useAppStore()
11-
const sizeMap = computed(() => appStore.sizeMap)
12-
13-
const { t } = useI18n()
14-
1510
export default defineComponent({
1611
name: 'TableActions',
1712
components: {
@@ -25,6 +20,9 @@ export default defineComponent({
2520
},
2621
emits: ['refresh', 'changSize', 'confirm'],
2722
setup(props, { emit }) {
23+
const appStore = useAppStore()
24+
const { t } = useI18n()
25+
const sizeMap = computed(() => appStore.sizeMap)
2826
const showSetting = ref(false)
2927
3028
const refresh = () => {

0 commit comments

Comments
 (0)