heyujie
2021-07-30 4b43bfb3f6f499f480712dd29bef52275466afd6
src/pages/cameraAccess/index/App.vue
@@ -17,6 +17,7 @@
import LeftNav from "@/components/LeftNav";
// import CameraVideo from "./components/Video.vue";
import RightSide from "./VideoManage"
import { getUrlKey } from "@/api/utils";
export default {
  name: "VideoManage",
@@ -26,7 +27,7 @@
  },
  computed: {
    app() {
      return this.getUrlKey() !== null ? "DataStack" : "Camera"
      return getUrlKey("dataStack") !== null ? "DataStack" : "Camera"
    }
  },
  data() {
@@ -49,10 +50,7 @@
    this.DataStackPool.readonly = false;
  },
  methods: {
    getUrlKey() {
      let name = "dataStack"
      return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) || [, ""])[1].replace(/\+/g, '%20')) || null
    }
  }
};
</script>