|
@@ -101,7 +101,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { defineComponent, reactive, toRefs, onMounted, ref } from 'vue';
|
|
|
+import { defineComponent, reactive, toRefs, onMounted, ref, nextTick } from 'vue';
|
|
|
import { ElMessage } from 'element-plus';
|
|
|
import _ from 'lodash';
|
|
|
import { useRoute } from 'vue-router';
|
|
@@ -137,7 +137,7 @@ export default defineComponent({
|
|
|
|
|
|
/* 获取图表数据信息 */
|
|
|
const loading = ref(false);
|
|
|
- const haveData = ref(true);
|
|
|
+ const haveData = ref(false);
|
|
|
const code = ref(route.query.code);
|
|
|
const isShare = ref(route.query.fromType === 'share');
|
|
|
// 语言 中英文 ch en 默认中文
|
|
@@ -168,8 +168,10 @@ export default defineComponent({
|
|
|
type === 'refresh' && ElMessage.success('刷新成功');
|
|
|
|
|
|
//水印配置
|
|
|
- const markDom = document.querySelector('.mark')
|
|
|
- Data.WaterMark&&(markDom.style.backgroundImage = `url(${Data.WaterMark})`)
|
|
|
+ nextTick(()=>{
|
|
|
+ const markDom = document.querySelector('.mark')
|
|
|
+ Data.WaterMark&&(markDom.style.backgroundImage = `url(${Data.WaterMark})`)
|
|
|
+ })
|
|
|
}catch (e) {
|
|
|
loading.value = false;
|
|
|
haveData.value = false;
|