dengzedong
2024-11-29 ec54c913c80e012738a528bae7557e5dd5a75e04
src/views/Home/Index.vue
@@ -5,13 +5,13 @@
  <el-skeleton :loading="loading" animated>
    <div id="app">
      <div class="card" v-for="(item, index) in appList" :key="`dynamics-${index}`">
        <div @click="gotoApp(item)">
        <div>
          <img class="card-left" :src="item.icon"/>
          <div class="card-right">
            <div class="app-title">
              {{ item.appName }}
            </div>
            <div class="goto-app">
            <div class="goto-app" @click="gotoApp(item)">
              <div>进入应用</div>
            </div>
          </div>
@@ -70,11 +70,11 @@
  if (type === 0) {
    await getAppMenuList(id, appCode)
  } else {
    // const data = await AppApi.getAppMenuList(id)
    // let userInfo = wsCache.get(CACHE_KEY.USER)
    // userInfo.menus = data
    // wsCache.set(CACHE_KEY.USER, userInfo)
    // wsCache.set(CACHE_KEY.ROLE_ROUTERS, data)
    const data = await AppApi.getAppMenuList(id)
    let userInfo = wsCache.get(CACHE_KEY.USER)
    userInfo.menus = data
    wsCache.set(CACHE_KEY.USER, userInfo)
    wsCache.set(CACHE_KEY.ROLE_ROUTERS, data)
    window.open(item.appDomain + '/index', '_blank')
    // window.open('/plat/shasteel', '_blank')
    // window.location.href = '/plat/shasteel'
@@ -134,6 +134,7 @@
  margin-top: 5px;
  background: #3A99FD;
  border-radius: 80px 80px 80px 80px;
  cursor: pointer;
}
.goto-app > div {
  padding: 6px;