diff --git a/components/layouts/pc/header.vue b/components/layouts/pc/header.vue
index 235167a..138eab7 100644
--- a/components/layouts/pc/header.vue
+++ b/components/layouts/pc/header.vue
@@ -71,10 +71,10 @@
-
+
登录
-
+
注册
@@ -91,16 +91,16 @@
return this.$store.state.activeMenu;
},
isLogin() {
- return this.$store.getters.isLogin;
+ return this.$store.getters['auth/isLogin'];
},
avatarURL() {
- return this.$store.state.avatarURL;
+ return this.$store.state['auth/avatarURL'];
},
nickname() {
- return this.$store.state.nickname;
+ return this.$store.state['auth/nickname'];
},
hasPermissions() {
- return this.$store.getters.hasPermissions('blog_admin');
+ return this.$store.getters['auth/hasPermissions(\'blog_admin\')'];
}
},
data() {
@@ -193,10 +193,10 @@
},
getUnreadNotifications() {
let _ts = this;
- _ts.axios.get('/notification/unread').then(function (res) {
+ _ts.$axios.$get('/api/v1/notification/unread').then(function (res) {
if (res) {
- _ts.$set(_ts, 'notifications', res.notifications);
- _ts.$set(_ts, 'notificationNumbers', res.notifications.length == 0 ? "" : res.notifications.length);
+ _ts.$set(_ts, 'notifications', res.data.notifications);
+ _ts.$set(_ts, 'notificationNumbers', res.data.notifications.length == 0 ? "" : res.notifications.length);
}
})
}
diff --git a/config/api.config.js b/config/api.config.js
index 13e6b4f..0e0704f 100644
--- a/config/api.config.js
+++ b/config/api.config.js
@@ -3,7 +3,7 @@ import { NODE_ENV } from '../environment'
const apisMap = {
development: {
FE: 'http://localhost:3000',
- BASE: 'http://localhost:8099/vertical',
+ BASE: 'https://rymcu.com/vertical-console',
CDN: '',
PROXY: '/proxy',
SOCKET: 'http://localhost:3000',
diff --git a/pages/login.vue b/pages/login.vue
index c127435..3db1cfb 100644
--- a/pages/login.vue
+++ b/pages/login.vue
@@ -52,6 +52,7 @@