剥离im,剥离钱包
This commit is contained in:
@@ -34,16 +34,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
getSms,
|
||||
smsAuth
|
||||
} from "@/apis/interfaces/auth";
|
||||
import userAuth from "@/public/userAuth";
|
||||
import {
|
||||
getImToken
|
||||
} from '@/apis/interfaces/im.js'
|
||||
import im from '@/utils/im/index.js'
|
||||
|
||||
import { getSms, smsAuth } from "@/apis/interfaces/auth";
|
||||
import userAuth from "@/public/userAuth";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -64,11 +57,6 @@
|
||||
"setToken",
|
||||
res.token_type + " " + res.access_token
|
||||
);
|
||||
// 在这里,登录成功,链接IM服务
|
||||
getImToken().then(res => {
|
||||
console.log('在这获取IM-TOKEN', res);
|
||||
im.connect(res.token, res.userInfo, () => {})
|
||||
})
|
||||
this.$Router.back();
|
||||
}).catch((err) => {
|
||||
uni.showToast({
|
||||
|
||||
Reference in New Issue
Block a user