|
@@ -1,15 +1,18 @@
|
|
|
<template>
|
|
|
<div class="customer-service h-full">
|
|
|
- <iframe class="iframe" src="https://www.baidu.com" frameborder="0"></iframe>
|
|
|
+ <iframe class="iframe" :src="url" frameborder="0"></iframe>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script setup name="CustomerService">
|
|
|
-import { onMounted } from 'vue';
|
|
|
+import { onMounted, ref } from 'vue';
|
|
|
import { intelligenceLink } from '@/api/common';
|
|
|
+const url = ref('');
|
|
|
onMounted(() => {
|
|
|
intelligenceLink().then((res) => {
|
|
|
- console.log('rrr', res);
|
|
|
+ if (typeof res === 'string') {
|
|
|
+ url.value = res;
|
|
|
+ }
|
|
|
});
|
|
|
});
|
|
|
</script>
|