update
1.im聊天可以添加其他用户(专业人员) 2.更新im打包文件
This commit is contained in:
+14
-18
@@ -1,21 +1,22 @@
|
||||
import {createApp, ref} from 'vue';
|
||||
import { createApp, ref } from 'vue';
|
||||
import App from './App.vue';
|
||||
import router from './router';
|
||||
import store from './store';
|
||||
import ElementPlus, {ElMessage, ElLoading} from 'element-plus';
|
||||
import ElementPlus, { ElMessage, ElLoading } from 'element-plus';
|
||||
import 'element-plus/dist/index.css';
|
||||
|
||||
import locales from './locales';
|
||||
import {TUICore, TUIComponents, genTestUserSig} from './TUIKit';
|
||||
import { TUICore, TUIComponents, genTestUserSig } from './TUIKit';
|
||||
// @ts-ignore
|
||||
import {TUICallKit} from '@tencentcloud/call-uikit-vue';
|
||||
import {TUINotification} from './TUIKit/TUIPlugin';
|
||||
import {EXPIRETIME} from '@/TUIKit/debug';
|
||||
// import { TUICallKit } from '@tencentcloud/call-uikit-vue';
|
||||
import { TUICallKit } from '@/TUIKit/TUIComponents/components/call/src/index';
|
||||
import { TUINotification } from './TUIKit/TUIPlugin';
|
||||
import { EXPIRETIME } from '@/TUIKit/debug';
|
||||
import mitt from 'mitt';
|
||||
import hrefParams from '@/utils/herfParams';
|
||||
|
||||
const {userId, sdkAppId: sdk, userSig, urlF, tokenF} = hrefParams;
|
||||
sessionStorage.setItem('tokenF', tokenF+'');
|
||||
const { userId, sdkAppId: sdk, userSig, urlF, tokenF } = hrefParams;
|
||||
sessionStorage.setItem('tokenF', tokenF + '');
|
||||
// const userId = 'administrator';
|
||||
// const sdkAppId = 1400811425;
|
||||
// @ts-ignore
|
||||
@@ -41,12 +42,12 @@ const login = (userInfo: any) => {
|
||||
expire: new Date().getTime() + EXPIRETIME,
|
||||
};
|
||||
store.commit('setUserInfo', options);
|
||||
window.parent.postMessage(JSON.stringify({code: 'closeLoading'}), '*');
|
||||
router.push({name: 'Home'});
|
||||
window.parent.postMessage(JSON.stringify({ code: 'closeLoading' }), '*');
|
||||
router.push({ name: 'Home' });
|
||||
})
|
||||
.catch((error: any) => {
|
||||
console.log('该关了');
|
||||
window.parent.postMessage(JSON.stringify({code: 'closeLoading'}), '*');
|
||||
window.parent.postMessage(JSON.stringify({ code: 'closeLoading' }), '*');
|
||||
ElMessage({
|
||||
message: error,
|
||||
grouping: true,
|
||||
@@ -74,11 +75,6 @@ bus.$on = emitter.on;
|
||||
bus.$off = emitter.off;
|
||||
bus.$emit = emitter.emit;
|
||||
app.config.globalProperties.$bus = bus;
|
||||
app.use(store)
|
||||
.use(router)
|
||||
.use(TUIKit)
|
||||
.use(bus)
|
||||
.use(ElementPlus)
|
||||
.mount('#app');
|
||||
app.use(store).use(router).use(TUIKit).use(bus).use(ElementPlus).mount('#app');
|
||||
|
||||
export {sdkAppId, urlF, tokenF};
|
||||
export { sdkAppId, urlF, tokenF };
|
||||
|
||||
Reference in New Issue
Block a user