代码优化

This commit is contained in:
吕金泽 2022-05-21 14:32:21 +08:00
parent 2676d6a271
commit 545040a72e
8 changed files with 8 additions and 8 deletions

View File

@ -37,7 +37,7 @@
</template>
<script setup>
import { ref, reactive, watch, onMounted, getCurrentInstance,defineExpose } from 'vue'
import { ref, reactive, watch, onMounted, getCurrentInstance } from 'vue'
import common from "../../../scripts/common";
const { proxy } = getCurrentInstance()

View File

@ -25,7 +25,7 @@
<script setup>
import { watch, ref, reactive, defineExpose, nextTick, getCurrentInstance, onBeforeMount } from 'vue'
import { watch, ref, reactive, nextTick, getCurrentInstance, onBeforeMount } from 'vue'
const { proxy } = getCurrentInstance()

View File

@ -21,7 +21,7 @@
</template>
<script setup>
import {ref, reactive, getCurrentInstance, defineExpose } from 'vue'
import {ref, reactive, getCurrentInstance } from 'vue'
const { proxy } = getCurrentInstance()
const rules = reactive(getRules())
const formData = ref(initFormData())

View File

@ -21,7 +21,7 @@
</template>
<script setup>
import { ref, defineExpose } from 'vue'
import { ref } from 'vue'
const tableRef = ref()
const ids = ref([])

View File

@ -92,7 +92,7 @@
</template>
<script setup>
import {reactive, ref, watch, getCurrentInstance, defineExpose, onMounted} from 'vue'
import {reactive, ref, watch, getCurrentInstance, onMounted} from 'vue'
import genCode from '@/scripts/gen/gen-mb-list.js'
import { ElMessageBox } from 'element-plus'
const { proxy } = getCurrentInstance()

View File

@ -78,7 +78,7 @@
</template>
<script setup>
import { ref, reactive, watch, nextTick, getCurrentInstance, defineExpose } from 'vue'
import { ref, reactive, watch, nextTick, getCurrentInstance } from 'vue'
import MenuIcons from './menu-icons'
const { proxy } = getCurrentInstance()

View File

@ -3,7 +3,7 @@
</template>
<script setup>
import {getCurrentInstance, ref, defineExpose} from 'vue'
import { getCurrentInstance, ref } from 'vue'
const { proxy } = getCurrentInstance()
const emit = defineEmits(['close'])
const props = defineProps({

View File

@ -47,7 +47,7 @@
<script setup>
import { ref, reactive, getCurrentInstance, nextTick, defineExpose } from 'vue'
import { ref, reactive, getCurrentInstance, nextTick } from 'vue'
const emit = defineEmits(['reload-table'])
const { proxy } = getCurrentInstance()