fix: 修改语言挂载问题

This commit is contained in:
mtruning
2022-01-09 19:22:55 +08:00
parent f665b75fc4
commit c582f72ea7
16 changed files with 96 additions and 99 deletions
+4 -10
View File
@@ -1,12 +1,6 @@
<template></template>
<script lang="ts">
import { useDialog } from 'naive-ui';
export default {
name: 'DialogContent',
setup() {
//挂载在 window 方便与在js中使用
window['$dialog'] = useDialog();
},
};
<script lang="ts" setup>
import { useDialog } from 'naive-ui';
//挂载在 window 方便与在js中使用
window['$dialog'] = useDialog();
</script>