mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-19 01:48:47 +08:00
26 lines
393 B
JavaScript
26 lines
393 B
JavaScript
|
|
import store from '@/store'
|
|
|
|
class AppManager {
|
|
saveOpenid(openid) {
|
|
wx.setStorageSync('openid', openid)
|
|
store.dispatch('setOpenidAction', openid)
|
|
}
|
|
|
|
getOpenid() {
|
|
return wx.getStorageSync('openid')
|
|
}
|
|
|
|
navigateTo(url) {
|
|
wx.navigateTo({
|
|
url: url
|
|
})
|
|
}
|
|
|
|
showToast(msg) {
|
|
wx.showToast({title: msg, icon: 'none'})
|
|
}
|
|
}
|
|
|
|
export default new AppManager()
|