无人机管理后台前端(已迁走)
shuishen
2025-05-22 15aa22b07c8fa7e7fc072c604ce5d1905972f201
src/page/index/top/index.vue
@@ -49,17 +49,17 @@
</template>
<script>
import { mapGetters } from 'vuex';
import topLock from './top-lock.vue';
import topMenu from './top-menu.vue';
import topSearch from './top-search.vue';
import topTheme from './top-theme.vue';
import topLogs from './top-logs.vue';
import topColor from './top-color.vue';
import topLang from './top-lang.vue';
import topFull from './top-full.vue';
import topQna from './top-qna.vue';
import topSetting from '../setting.vue';
import { mapGetters } from 'vuex'
import topLock from './top-lock.vue'
import topMenu from './top-menu.vue'
import topSearch from './top-search.vue'
import topTheme from './top-theme.vue'
import topLogs from './top-logs.vue'
import topColor from './top-color.vue'
import topLang from './top-lang.vue'
import topFull from './top-full.vue'
import topQna from './top-qna.vue'
import topSetting from '../setting.vue'
export default {
  components: {
@@ -75,17 +75,17 @@
    topSetting,
  },
  name: 'top',
  data() {
    return {};
  data () {
    return {}
  },
  filters: {},
  created() {},
  created () { },
  computed: {
    ...mapGetters([
      'setting',
      'userInfo',
      'tagWel',
      'tagList',
      'bsTagList',
      'isCollapse',
      'tag',
      'logsLen',
@@ -94,22 +94,22 @@
    ]),
  },
  methods: {
    setCollapse() {
      this.$store.commit('SET_COLLAPSE');
    setCollapse () {
      this.$store.commit('SET_COLLAPSE')
    },
    logout() {
    logout () {
      this.$confirm(this.$t('logoutTip'), this.$t('tip'), {
        confirmButtonText: this.$t('submitText'),
        cancelButtonText: this.$t('cancelText'),
        type: 'warning',
      }).then(() => {
        this.$store.dispatch('LogOut').then(() => {
          this.$router.push({ path: '/login' });
        });
      });
          this.$router.push({ path: '/login' })
        })
      })
    },
  },
};
}
</script>
<style lang="scss" scoped>