20 lines
395 B
JavaScript
20 lines
395 B
JavaScript
|
|
import { goto } from "./untool"
|
|
import { getCurrentInstance } from "vue"
|
|
import { sysEventNames } from "@/common/enum"
|
|
|
|
// 唤起登录
|
|
export const goLogin = ()=> {
|
|
// #ifdef MP
|
|
uni.$emit(sysEventNames.login, { })
|
|
// #endif
|
|
|
|
// #ifndef MP
|
|
goto("login/login", 2)
|
|
// #endif
|
|
}
|
|
|
|
// 唤起消息订阅
|
|
export const triggerSubscribeMessage = ()=> {
|
|
uni.$emit(sysEventNames.subMessage, { })
|
|
} |