|
@@ -184,7 +184,7 @@ function createUserInfo() {
|
|
info.name = userName.value.trim()
|
|
info.name = userName.value.trim()
|
|
info.dateMode = dateMode.value
|
|
info.dateMode = dateMode.value
|
|
info.extra = extraInfo.value.trim()
|
|
info.extra = extraInfo.value.trim()
|
|
- info.owner_id = DataCenter.owernId
|
|
|
|
|
|
+ info.owner_id = DataCenter.getOwnerId()
|
|
info.fillData(DataCenter.bazi.value)
|
|
info.fillData(DataCenter.bazi.value)
|
|
return info
|
|
return info
|
|
}
|
|
}
|
|
@@ -226,6 +226,25 @@ function onSelectLastUser() {
|
|
function loginOut() {
|
|
function loginOut() {
|
|
Tools.removeCookie("yx_uname")
|
|
Tools.removeCookie("yx_uname")
|
|
Tools.removeCookie("yx_token")
|
|
Tools.removeCookie("yx_token")
|
|
|
|
+ DataCenter.bazi.value = null
|
|
|
|
+ DataCenter.historyBaZi.value = []
|
|
|
|
+ DataCenter.historyUser.value = []
|
|
|
|
+ DataCenter.ownerUsers.value = []
|
|
|
|
+ DataCenter.lastKeyInGeJu.value = null
|
|
|
|
+ DataCenter.selectedLiuNianInGeJu.value = null
|
|
|
|
+ DataCenter.selectedDaYunInGeJu.value = null
|
|
|
|
+ DataCenter.includeDaYunInGeJu.value = false
|
|
|
|
+ DataCenter.includeLiuNianInGeJu.value = false
|
|
|
|
+ DataCenter.powerMode.value = 1
|
|
|
|
+ DataCenter.dayunIndex.value = null
|
|
|
|
+ DataCenter.curDaYun.value = null
|
|
|
|
+ DataCenter.liunianIndex.value = null
|
|
|
|
+ DataCenter.curLiuNianList.value = []
|
|
|
|
+ DataCenter.curLiuNian.value = null
|
|
|
|
+ DataCenter.liuyueIndex.value = null
|
|
|
|
+ DataCenter.curLiuYue.value = null
|
|
|
|
+ DataCenter.liuriIndex.value = null
|
|
|
|
+ DataCenter.curLiuRi.value = null
|
|
router.push({name: "login"})
|
|
router.push({name: "login"})
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|