@@ -129,7 +129,6 @@ onMounted(() => {
if(localStorage.getItem('userInfo') != null) {
AIIconVisible.value = true
}
- AIRobotInit()
emitter.on('login-success', isShowLogin)
emitter.on('login-out', Logout)
emitter.on('checkPrompt', Logout)
@@ -1,5 +1,6 @@
<script setup lang="ts">
import { ref, onMounted } from 'vue'
+import emitter from '@/utils/bus'
const props = defineProps<{
modalSize: String
@@ -95,7 +96,7 @@ const generatePages = () => {
pages.value = result.filter((p) => p.row1.length > 0)
onMounted(() => {
+ emitter.on('login-success', AIRobotInit)
})
defineExpose({
@@ -42,6 +42,7 @@ const columnstest = ref([
])
const datatest = ref([])
+
const tableData = ref<VxeGridProps<any>>({
border: true,
round: true,