fix: 修改bug
This commit is contained in:
parent
af6f78ebb2
commit
f35fd74006
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<j-modal :width="'900px'" visible @cancel="emit('close')">
|
||||
<j-modal :width="'900px'" visible @cancel="emit('close')" :zIndex="1100">
|
||||
<template v-if="getType === 'notifier-dingTalk'">
|
||||
<j-spin :spinning="loading">
|
||||
<div class="code" style="height: 600px;">
|
||||
|
@ -44,6 +44,7 @@ import {
|
|||
} from '@/api/account/notificationSubscription';
|
||||
|
||||
const emit = defineEmits(['close', 'save']);
|
||||
|
||||
const props = defineProps({
|
||||
data: {
|
||||
// 外层数据
|
||||
|
@ -103,6 +104,7 @@ const updateIframeStyle = () => {
|
|||
'#notifier_iframe',
|
||||
) as HTMLIFrameElement;
|
||||
iframe.onload = () => {
|
||||
console.log(iframe?.contentWindow)
|
||||
const currentUrl = iframe?.contentWindow?.location?.search || '';
|
||||
let authCode = '';
|
||||
if (currentUrl.startsWith('?')) {
|
||||
|
|
|
@ -75,17 +75,20 @@ const onBind = () => {
|
|||
} else {
|
||||
visible.value = true
|
||||
}
|
||||
emit('close')
|
||||
|
||||
};
|
||||
|
||||
const onSave = () => {
|
||||
editInfoVisible.value = false;
|
||||
user.getUserInfo();
|
||||
emit('save', props.current);
|
||||
emit('close')
|
||||
};
|
||||
|
||||
const onBindSave = () => {
|
||||
visible.value = false
|
||||
emit('save', props.current);
|
||||
emit('close')
|
||||
}
|
||||
|
||||
const handleSearch = async () => {
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
|
||||
<script lang="ts" setup>
|
||||
import { useUserInfo } from '@/store/userInfo';
|
||||
import { onlyMessage } from '@/utils/comm';
|
||||
import EditInfo from '../../EditInfo/index.vue';
|
||||
import Bind from './Bind.vue';
|
||||
|
||||
|
|
Loading…
Reference in New Issue