|
@@ -69,7 +69,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup>
|
|
|
-import { ref, watchEffect } from 'vue';
|
|
|
+import { ref, watchEffect,onMounted } from 'vue';
|
|
|
import img1 from '@/assets/icon/1.png'
|
|
|
import img11 from '@/assets/icon/1-1.png'
|
|
|
import img2 from '@/assets/icon/2.png'
|
|
@@ -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)
|
|
@@ -103,6 +103,16 @@ const iframeRef2Url = ref('')
|
|
|
const iframeRef2Dialog = ref(false)
|
|
|
const leftShow = ref(false)
|
|
|
|
|
|
+onMounted(() => {
|
|
|
+ let timer = setInterval(() => {
|
|
|
+ console.log('111111111111',user.user)
|
|
|
+ if(JSON.stringify(user.user) != "{}") {
|
|
|
+ clickSwitch(1)
|
|
|
+ clearInterval(timer)
|
|
|
+ }
|
|
|
+ }, 1000);
|
|
|
+})
|
|
|
+
|
|
|
watchEffect(() => {
|
|
|
// console.log('111111111111',CurrentRole, user.user)
|
|
|
if (JSON.stringify(user.user) != "{}") {
|