<script lang="ts">
import {getCurrentInstance} from 'vue';
export default defineComponent({
setup(){
const { proxy }: any = getCurrentInstance();
}
})
</script>
vue3中设置this
最新推荐文章于 2024-05-16 13:30:42 发布
<script lang="ts">
import {getCurrentInstance} from 'vue';
export default defineComponent({
setup(){
const { proxy }: any = getCurrentInstance();
}
})
</script>