Skip to content

Commit

Permalink
fix: Table组件注册为全局组件报错问题,存在对pinia的提前引用
Browse files Browse the repository at this point in the history
  • Loading branch information
Cwealth committed Feb 6, 2024
1 parent 1123ec9 commit 1e209a7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/Table/src/components/TableActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ import { useAppStore } from '@/store/modules/app'
import { TableColumn } from '../types'
import ColumnSetting from './ColumnSetting.vue'
const appStore = useAppStore()
const sizeMap = computed(() => appStore.sizeMap)
const { t } = useI18n()
export default defineComponent({
name: 'TableActions',
components: {
Expand All @@ -25,6 +20,9 @@ export default defineComponent({
},
emits: ['refresh', 'changSize', 'confirm'],
setup(props, { emit }) {
const appStore = useAppStore()
const { t } = useI18n()
const sizeMap = computed(() => appStore.sizeMap)
const showSetting = ref(false)
const refresh = () => {
Expand Down

0 comments on commit 1e209a7

Please sign in to comment.