no message
Former-commit-id: 74f9285eb470e68b8b78c597dbfd18283ee6246f [formerly 74f9285eb470e68b8b78c597dbfd18283ee6246f [formerly 74f9285eb470e68b8b78c597dbfd18283ee6246f [formerly 74f9285eb470e68b8b78c597dbfd18283ee6246f [formerly 05e5b1b004919d88516d8c75edc680316cbbe0bc [formerly 8aa4e5f62ad1e69bf3a9f017e797e0b7f16cfd21]]]]] Former-commit-id: 9edb641f00492881001b439ca4f183834aca6a09 Former-commit-id: 556a889587a8cce28e36abb7b86f6533e9eed4e6 Former-commit-id: 5a0f7797a2a9ff54c6552cd80f5d89df3ceeb5d8 [formerly 2105b9ed6d99a09ed0d884641180f98c2fd8f4fb] Former-commit-id: ebc3b8cfb90750db827b0afe767a5df92e3e5865 Former-commit-id: 3fe7656a29e1159bbd48f6e2099b4d8eb3c9584e Former-commit-id: 8edd1646d8995a266a18679e99de43cf8f43ce3d Former-commit-id: f15ae065b8ad16a2c0a90b80415f2df3d61ee924 Former-commit-id: 357621f1ca7ab2ad50388df96e685823ffb27aa5
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
<script>
|
<script>
|
||||||
// 插件
|
// 插件
|
||||||
import Cookies from 'js-cookie'
|
import Cookies from 'js-cookie'
|
||||||
import { mapState } from 'vuex'
|
import { mapState, mapMutations } from 'vuex'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
computed: {
|
computed: {
|
||||||
@@ -20,12 +20,20 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
...mapMutations([
|
||||||
|
'd2adminDbRemoveByUuid'
|
||||||
|
]),
|
||||||
logOff () {
|
logOff () {
|
||||||
this.$confirm('注销此账户吗?', '注销', {
|
this.$confirm('注销此账户吗?', '注销', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
// 删除用户名
|
||||||
|
this.d2adminDbRemoveByUuid({
|
||||||
|
key: 'username',
|
||||||
|
emptyValue: ''
|
||||||
|
})
|
||||||
// 删除cookie
|
// 删除cookie
|
||||||
Cookies.remove('token')
|
Cookies.remove('token')
|
||||||
Cookies.remove('uuid')
|
Cookies.remove('uuid')
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
ef14650e0f14b8ee44068a90cf999ca7494864e6
|
2ecdea5daed762cc83ca1601a95bb7a0526a1998
|
||||||
Reference in New Issue
Block a user