MCPcopy Index your code
hub / github.com/1Panel-dev/KubePi / isLogin

Function isLogin

web/dashboard/src/store/modules/user.js:65–81  ·  view source on GitHub ↗
({commit})

Source from the content-addressed store, hash-verified

63 },
64
65 isLogin({commit}) {
66 return new Promise((resolve) => {
67 if (state.login) {
68 resolve(true)
69 }
70 isLogin().then((data) => {
71 if (data.data) {
72 commit("LOGIN")
73 resolve(true)
74 } else {
75 resolve(false)
76 }
77 }).catch(() => {
78 resolve(false)
79 })
80 })
81 },
82 setLanguage({commit}, lang) {
83 return new Promise((resolve, reject) => {
84 updateProfile({"language": lang}).then(() => {

Callers

nothing calls this directly

Calls 2

isLoginFunction · 0.90
resolveFunction · 0.50

Tested by

no test coverage detected