diff --git a/package.json b/package.json index 6b793dc..cae6313 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "core-js": "^3.6.5", "date-fns": "^2.14.0", "enquire.js": "^2.1.6", + "js-cookie": "^2.2.1", "mockjs": "^1.1.0", "pouchdb": "^7.2.1", "viser-vue": "^2.4.8", diff --git a/src/mock/user/login.js b/src/mock/user/login.js index c22663c..7391fbe 100644 --- a/src/mock/user/login.js +++ b/src/mock/user/login.js @@ -22,6 +22,7 @@ Mock.mock('/login', 'post', ({body}) => { result.message = Mock.mock('@TIMEFIX').CN + ',欢迎回来' result.data = {} result.data.user = user + result.data.token = 'Authorization' } return result }) diff --git a/src/pages/login/Login.vue b/src/pages/login/Login.vue index c6deeef..5a503b2 100644 --- a/src/pages/login/Login.vue +++ b/src/pages/login/Login.vue @@ -76,6 +76,7 @@