diff --git a/.env.production b/.env.production index 4fb8e9d..45f54ad 100644 --- a/.env.production +++ b/.env.production @@ -2,9 +2,9 @@ ENV = production # 线上环境接口地址 -VITE_API_URL = https://cankao.cs.com.cn/admin -# VITE_API_URL = http://123.60.153.169:8040/admin +# VITE_API_URL = https://cankao.cs.com.cn/admin +VITE_API_URL = http://123.60.153.169:8040/admin #H5的域名,目前是给列表里的复制用 -VITE_API_URL_H5 = https://cankao.cs.com.cn -# VITE_API_URL_H5 = http://123.60.153.169:8040 +# VITE_API_URL_H5 = https://cankao.cs.com.cn +VITE_API_URL_H5 = http://123.60.153.169:8040 diff --git a/src/views/pages/index/index.vue b/src/views/pages/index/index.vue index f7d9ac8..583275a 100644 --- a/src/views/pages/index/index.vue +++ b/src/views/pages/index/index.vue @@ -6,6 +6,8 @@ import { onMounted } from 'vue'; import { NextLoading } from '/@/utils/loading'; import { useRoute, useRouter } from 'vue-router'; +import { isMobileByWidth } from '/@/utils/Utils'; +import { Session, Local } from '/@/utils/storage'; const route = useRoute(); const router = useRouter(); @@ -15,9 +17,13 @@ onMounted(() => { console.log('🚀 ~ file: index.vue:13 ~ onMounted ~ onMounted:'); NextLoading.done(); - router.push({ - path: '/richedit', - }); + if (isMobileByWidth() && Session.get('userInfoLocal').userType == '01') { + router.push({ path: '/richeditMobile' }); + } else { + router.push({ + path: '/richedit', + }); + } });