|
|
@@ -25,7 +25,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { ref, reactive, nextTick, onMounted } from 'vue'
|
|
|
+import { ref, reactive, nextTick, onMounted, onUnmounted } from 'vue'
|
|
|
import { queryElementRect } from '@/uni_modules/x-tools/tools/sugar.js'
|
|
|
import { str2px, commonProps } from '@/uni_modules/x-tools/tools/com.js'
|
|
|
|
|
|
@@ -154,6 +154,14 @@ const close = () => {
|
|
|
onMounted(() => {
|
|
|
getSystemInfo()
|
|
|
innerInterspace.value = str2px(props.interspace)
|
|
|
+
|
|
|
+ uni.$on('logout', () => {
|
|
|
+ close()
|
|
|
+ })
|
|
|
+})
|
|
|
+
|
|
|
+onUnmounted(() => {
|
|
|
+ uni.$off('logout')
|
|
|
})
|
|
|
// 暴露方法
|
|
|
defineExpose({
|