修改代码
This commit is contained in:
parent
9c0ad7adb8
commit
3fefbe2a47
@ -1,8 +1,9 @@
|
||||
module.exports = {
|
||||
presets: [
|
||||
'@vue/app'
|
||||
],
|
||||
plugins: [
|
||||
'@babel/plugin-transform-runtime',
|
||||
'@babel/plugin-syntax-dynamic-import'
|
||||
]
|
||||
// plugins: [
|
||||
// '@babel/plugin-syntax-dynamic-import'
|
||||
// ]
|
||||
};
|
||||
|
@ -10,6 +10,10 @@ export const commonTopic = '/topic/message'; // 公共topic(不区分用户)
|
||||
|
||||
// 建立连接并订阅地址
|
||||
export function creatSubscribe(topic, header) {
|
||||
if ([displayTopic, planTopic, designDisplayTopic].includes(topic)) {
|
||||
topic = `${topic}/${header.group}`;
|
||||
}
|
||||
|
||||
try {
|
||||
if (!Vue.prototype.$stomp) {
|
||||
Vue.prototype.$stomp = new StompClient();
|
||||
|
@ -9,7 +9,7 @@
|
||||
:modal="false"
|
||||
fullscreen
|
||||
>
|
||||
<div :id="runPlanId" />
|
||||
<div :id="runPlanId" v-loading="loading" />
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
@ -164,10 +164,16 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
'$store.state.runPlan.planLoadedCount': function () {
|
||||
try {
|
||||
this.loadChartPage();
|
||||
if (this.dialogShow) {
|
||||
this.loadInitData(this.series);
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
} finally {
|
||||
this.loading = true;
|
||||
}
|
||||
},
|
||||
'$store.state.runPlan.planUpdateCount': function () {
|
||||
this.updateRunPlanData(this.$store.state.runPlan.updateData);
|
||||
|
Loading…
Reference in New Issue
Block a user