#
Junjie
2024-09-09 04fd71bcdd2f4d13f7fcb1f59952f6decdbb3d65
zy-asrs-admin/src/views/IndexView.vue
@@ -16,6 +16,7 @@
  ApartmentOutlined,
} from "@ant-design/icons-vue";
import { formatMessage, loadData } from '@/utils/localeUtils.js';
import AiView from '@/components/ai/index.vue'
const globalState = inject('globalState');
const selectedKeys = ref([]);
@@ -120,7 +121,7 @@
    isRouterAlive.value = false;
    nextTick(() => {
      isRouterAlive.value = true;
      message.success(formatMessage('common.success', '加载成功'));
      // message.success(formatMessage('common.success', '加载成功'));
    })
  } catch (error) {
    message.error(formatMessage('common.fail', '加载失败'));
@@ -185,7 +186,7 @@
  post('/api/license/getLicenseDays', {}).then((resp) => {
    let result = resp.data;
    let data = result.data;
    if(result.code == 200) {
    if (result.code == 200) {
      licenseDays.value = data;
    }
  })
@@ -215,7 +216,8 @@
  <a-layout class="main">
    <a-layout-sider class="main-sider" v-model:collapsed="collapsed" :trigger="null" collapsible theme="dark">
      <div class="logo" />
      <a-menu v-model:openKeys="openKeys" v-model:selectedKeys="selectedKeys" @select="menuSelect" theme="dark" mode="inline">
      <a-menu v-model:openKeys="openKeys" v-model:selectedKeys="selectedKeys" @select="menuSelect" theme="dark"
        mode="inline">
        <div>
          <a-menu-item key="/" name="主页">
            <HomeOutlined /> {{ formatMessage('common.home', '主页') }}
@@ -314,12 +316,14 @@
        </div>
        <router-view v-slot="{ Component, route }" v-if="isRouterAlive">
          <keep-alive :include="routerCache">
            <component :is="Component" />
            <component :is="Component" @pageReload="reloadTabs" />
          </keep-alive>
        </router-view>
      </a-layout-content>
    </a-layout>
  </a-layout>
  <AiView />
</template>
<style scoped></style>