no message
Former-commit-id: 55b937e5c0fffec8d15ede82e5fd90a424b12313 Former-commit-id: 4d8d3ef88d770a116f6d51b7f83047f2a1764114 Former-commit-id: 3179d05b6e88003706bc48d7c6f5eb0c0abab489
This commit is contained in:
@@ -39,6 +39,7 @@ require('particles.js')
|
||||
// 配置地址
|
||||
// https://vincentgarreau.com/particles.js/#default
|
||||
import config from './config/default'
|
||||
import Cookies from 'js-cookie'
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
@@ -76,6 +77,11 @@ export default {
|
||||
})
|
||||
.then(res => {
|
||||
this.$log('登录结果', res)
|
||||
const setting = {
|
||||
expires: 1
|
||||
}
|
||||
Cookies.set('username', res.username, setting)
|
||||
Cookies.set('password', res.password, setting)
|
||||
})
|
||||
.catch(err => {
|
||||
this.$log('错误信息', err)
|
||||
|
||||
Reference in New Issue
Block a user