قرینه از
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-06-12 13:19:31 +08:00
新增:更新halo.config.js 配置参数;
更新:更新项目UI框架; 修复:修复友链列表丢失白色背景色BUG;
This commit is contained in:
+4
-10
@@ -45,14 +45,11 @@ export default {
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
// 登录
|
||||
adminLogin({
|
||||
commit
|
||||
}, data) {
|
||||
adminLogin(context, data) {
|
||||
return new Promise((resolve, reject) => {
|
||||
User.login(data).then((res) => {
|
||||
if (res.status == 200) {
|
||||
commit("setAdminToken", res.data);
|
||||
context.commit("setAdminToken", res.data);
|
||||
resolve(res)
|
||||
} else {
|
||||
reject(err)
|
||||
@@ -72,11 +69,8 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
// 登出
|
||||
adminLogout({
|
||||
commit
|
||||
}) {
|
||||
commit("setAdminToken", null);
|
||||
adminLogout(context) {
|
||||
context.commit("setAdminToken", null);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
مرجع در شماره جدید
Block a user