chao 3 달 전
부모
커밋
fb7886db8e
5개의 변경된 파일8개의 추가작업 그리고 9개의 파일을 삭제
  1. 0 0
      dist/assets/Details-6TuStH_X.js
  2. 0 0
      dist/assets/admin-cu33Qa7e.js
  3. 0 0
      dist/assets/index-9qD0vzba.js
  4. 1 1
      dist/index.html
  5. 7 8
      src/views/main.vue

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/assets/Details-6TuStH_X.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/assets/admin-cu33Qa7e.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/assets/index-9qD0vzba.js


+ 1 - 1
dist/index.html

@@ -8,7 +8,7 @@
     <script>
       document.domain = "cocorobo.cn"
     </script>
-    <script type="module" crossorigin src="./assets/index-oZ5bJLtE.js"></script>
+    <script type="module" crossorigin src="./assets/index-9qD0vzba.js"></script>
     <link rel="stylesheet" crossorigin href="./assets/index-guepuggO.css">
   </head>
   <body>

+ 7 - 8
src/views/main.vue

@@ -1,7 +1,7 @@
 <template>
   <div style="height:100%">
     <Header></Header>
-    <div class="container" v-if="isLogin">
+    <div class="container" v-if="isLogin" >
       <div class="container-left" :style="leftShow ? {width:0}:{width:'240px'}">
         <div :class="activeIndex == 0 ? 'container-left-top active' : 'container-left-top'" @click="activeIndex = 0">
           <img class="icon-img" :src="activeIndex == 0 ? img1 : img11" alt="教学中心" />教学中心
@@ -92,7 +92,7 @@ const user = userInfoStore()
 const CurrentRole = userCurrentRole()
 const isupdateCourse = ref(false)
 const isLogin = ref(false)
-const activeIndex = ref(1)
+const activeIndex = ref(0)
 const dialogVisible = ref(true)
 const iframeRef = ref(null)
 const iframeRef1 = ref(null)
@@ -105,7 +105,6 @@ const leftShow = ref(false)
 
 onMounted(() => {
   let timer = setInterval(() => {
-    console.log('111111111111',user.user)
     if(JSON.stringify(user.user) != "{}") {
       clickSwitch(1)
       clearInterval(timer)
@@ -124,8 +123,8 @@ watchEffect(() => {
 })
 
 const clickSwitch = (index) => {
-  activeIndex.value = index
-  if (index == 1) {
+  console.log('clickSwitch', activeIndex.value)
+  if (index == 1 && activeIndex.value != 1) {
     loading.value = true
     iframeRef1Url.value = `//app.cocorobo.cn/#/appManagement?userid=${user.user.userid}&oid=${user.user.organizeid}&org=${user.user.org}&role=${user.user.role}`
     setTimeout(() => {
@@ -133,23 +132,23 @@ const clickSwitch = (index) => {
         loading.value = false
       }
     }, 10)
-  } else if (index == 3) {
+  } else if (index == 3 && activeIndex.value != 3) {
     loading.value = true
     setTimeout(() => {
       iframeRef.value.onload = () => {
         loading.value = false
       }
     }, 10)
-  } else if (index == 2) {
+  } else if (index == 2 && activeIndex.value != 2) {
     loading.value = true
     iframeRef2Url.value = `//app.cocorobo.cn/#/AppList?userid=${user.user.userid}&oid=${user.user.organizeid}&org=${user.user.org}&role=${user.user.role}`
-    console.log(iframeRef2Url.value)
     setTimeout(() => {
       iframeRef2.value.onload = () => {
         loading.value = false
       }
     }, 10)
   }
+  activeIndex.value = index
 }
 
 const copyEmail = () => {

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.