WXL (wul)
5 天以前 7b38cbd5c0af64e2f11e02d4d2e0ea6cbb1c09f5
src/main.js
@@ -152,6 +152,19 @@
Vue.config.productionTip = false;
// 全局注入机构判断(省立同德系列 / 纯省立同德院区)。
// 所有组件无需单独注册 computed,模板与 this 中可直接使用 isTongdeOrg / isTongdeCampus
Vue.mixin({
  computed: {
    isTongdeOrg() {
      return this.$store.getters.isTongdeOrg;
    },
    isTongdeCampus() {
      return this.$store.getters.isTongdeCampus;
    },
  },
});
new Vue({
  el: "#app",
  router,