system-phone 3.0.13 → 3.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -278,7 +278,7 @@ export default {
|
|
|
278
278
|
}
|
|
279
279
|
// 设置当前登录人信息
|
|
280
280
|
if ((JSON.stringify(ret.data).startsWith("{") || JSON.stringify(ret.data).startsWith("[")) && ret.data.code && ret.data.msg && ret.data.code === 200) {
|
|
281
|
-
Vue.prototype.$login
|
|
281
|
+
Vue.$login = Vue.prototype.$login = {jwt: ret.data.data.id,
|
|
282
282
|
toStandardDateString () {
|
|
283
283
|
let dt = new Date()
|
|
284
284
|
let month = dt.getMonth() + 1
|
|
@@ -295,7 +295,7 @@ export default {
|
|
|
295
295
|
+ ' ' + (hour < 10 ? '0' + hour : hour)
|
|
296
296
|
}}
|
|
297
297
|
} else {
|
|
298
|
-
Vue.prototype.$login = {jwt: ret.data.id,
|
|
298
|
+
Vue.$login = Vue.prototype.$login = {jwt: ret.data.id,
|
|
299
299
|
toStandardDateString () {
|
|
300
300
|
let dt = new Date()
|
|
301
301
|
let month = dt.getMonth() + 1
|