hanbaoshan
2020-10-13 1fbade862552c9387809f7e50dd75d6b019086f1
src/pages/index/App.vue
@@ -1,7 +1,7 @@
<template>
  <div class v-loading="vLoading" :style="`width: ${currentWidth}px;height:${currentHeight}px`">
    <div class="web-site">
      <a href="http://www.aiotlink.com" target="_blank">www.aiotlink.com</a>
      <a href="http://www.smartai.com" target="_blank">www.smartai.com</a>
    </div>
    <licence />
    <div class="right-bg" style>
@@ -45,7 +45,7 @@
          </el-form-item>
        </el-form>
      </div>
      <p class="gradient-text gradient-text-one">——— {{serverTitle || '智 能 计 算 节 点 — ReID'}} ———</p>
      <p class="gradient-text gradient-text-one">——— {{serverTitle || 'SmartAI — ReID'}} ———</p>
    </div>
  </div>
</template>
@@ -166,10 +166,11 @@
    async getServerName() {
      let res = await getServerName()
      if (res && res.success) {
        console.log(res.data.serverName)
        this.serverTitle = res.data.serverName
        window.document.title = res.data.serverName
          ? res.data.serverName
          : '智 能 计 算 节 点'
          : 'SmartAI'
        sessionStorage.setItem('title', res.data.serverName)
      }
    },
@@ -178,6 +179,9 @@
    this.getServerName()
    this.getScreenHeight()
  },
  mounted(){
    console.log(this.serverTitle)
  },
  watch: {},
  beforeDestroy() {
    window.onresize = null