App.vue 503 Bytes
<template>
  <div id="app">
    <template v-if="showWindow">
      <router-view />
    </template>
  </div>
</template>
<script>
export default {
  name: 'App',
  data() {
    return {
      showWindow: false
    }
  },

  watch: {
    watchFlag: {
      immediate: true,
      handler(newval) {
        this.showWindow = newval
        this.hideLoading()
      }
    }
  },
  computed: {
    watchFlag() {
      return this.$store.state.app.showWindow
    }
  }
}
</script>
<style lang="scss"></style>