@@ -331,6 +331,13 @@ import {remoteGatewayList} from "../../api/aiSipCall/aiSipCallGateway";
export default {
name: "AiSipCallUser",
+ props: {
+ /** 嵌入用户管理等页面时仅作弹窗组件,禁止 created 自动拉 SIP 列表(远程 401 会触发全局登出) */
+ autoLoad: {
+ type: Boolean,
+ default: true
+ }
+ },
data() {
return {
loading: true,
@@ -394,7 +401,11 @@ export default {
};
},
created() {
- this.getList();
+ if (this.autoLoad) {
+ this.getList();
+ } else {
+ this.loading = false;
computed: {
selectedGatewayItems() {
@@ -393,7 +393,7 @@
</div>
</el-dialog>
- <ai-sip-call-user ref="aiSipCallUser" v-show="false" @refreshParentData="getList" />
+ <ai-sip-call-user ref="aiSipCallUser" :auto-load="false" v-show="false" @refreshParentData="getList" />
</template>