Skip to content

Commit

Permalink
Update index.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
Waikkii authored Sep 12, 2021
1 parent 98eef8e commit 6e58100
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions frontend/src/views/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default {
ElMessage.error(body.message)
}
const wseid = localStorage.getItem('wseid')
const wsbody = await remarkupdateAPI({ wseid, remark })
const wsbody = await remarkupdateWSCKAPI({ wseid, remark })
if (wsbody.code !== 200) {
ElMessage.success(wsbody.message)
} else {
Expand All @@ -172,21 +172,21 @@ export default {
data.jdwsck.match(/pin=(.*?);/) &&
data.jdwsck.match(/pin=(.*?);/)[1]
if (wskey && pin) {
const WSCKbody = await WSCKLoginAPI({ wskey: wskey, pin: pin })
if (WSCKbody.data.eid) {
localStorage.setItem('wseid', WSCKbody.data.eid)
ElMessage.success(WSCKbody.message)
const body = await WSCKLoginAPI({ wskey: wskey, pin: pin })
if (body.data.wseid) {
localStorage.setItem('wseid', body.data.wseid)
ElMessage.success(body.message)
} else {
ElMessage.error(WSCKbody.message || 'wskey 解析失败,请检查后重试!')
ElMessage.error(body.message || 'wskey 解析失败,请检查后重试!')
}
} else {
ElMessage.error('wskey 解析失败,请检查后重试!')
}
}
const delWSCKAccount = async () => {
const eid = localStorage.getItem('wseid')
const body = await WSCKDelaccountAPI({ eid })
const wseid = localStorage.getItem('wseid')
const body = await WSCKDelaccountAPI({ wseid })
if (body.code !== 200) {
ElMessage.error(body.message)
} else {
Expand Down

0 comments on commit 6e58100

Please sign in to comment.