From fa7044f3ccc9a91bc2bc117d1a06f650d86554f2 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@iotlink.com> Date: 星期二, 15 六月 2021 16:07:16 +0800 Subject: [PATCH] 优化联动规则加载场景列表的操作 --- src/pages/gb28181/index/main.ts | 24 +++++++++++++++++++----- 1 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/pages/gb28181/index/main.ts b/src/pages/gb28181/index/main.ts index d2b3424..d48da00 100644 --- a/src/pages/gb28181/index/main.ts +++ b/src/pages/gb28181/index/main.ts @@ -1,11 +1,25 @@ -import Vue from 'vue' -import ElementUI from 'element-ui' -import 'element-ui/lib/theme-chalk/index.css' -import "@/assets/css/element-variables.scss"; -import App from './App.vue' +import Vue from 'vue'; +import App from './App.vue'; +import TreeDataPool from "@/Pool/TreeData"; + +import ElementUI from 'element-ui'; +import 'element-ui/lib/theme-chalk/index.css'; +import "@/assets/css/element-variables.scss"; Vue.use(ElementUI) +const onlyTreeDataPool = new TreeDataPool + +const mixin = { + data() { + return { + TreeDataPool: onlyTreeDataPool + }; + }, +}; + +Vue.mixin(mixin); + new Vue({ el: '#app', render: h => h(App) -- Gitblit v1.8.0