|
|
@ -216,6 +216,7 @@
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import adminApi from '@/api/admin'
|
|
|
|
import adminApi from '@/api/admin'
|
|
|
|
import migrateApi from '@/api/migrate'
|
|
|
|
import migrateApi from '@/api/migrate'
|
|
|
|
|
|
|
|
import { mapActions } from 'vuex'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
@ -270,6 +271,7 @@ export default {
|
|
|
|
this.$set(this.installation, 'url', window.location.protocol + '//' + window.location.host)
|
|
|
|
this.$set(this.installation, 'url', window.location.protocol + '//' + window.location.host)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
...mapActions(['installCleanToken']),
|
|
|
|
async handleVerifyIsInstall() {
|
|
|
|
async handleVerifyIsInstall() {
|
|
|
|
await adminApi.isInstalled().then((response) => {
|
|
|
|
await adminApi.isInstalled().then((response) => {
|
|
|
|
if (response.data.data) {
|
|
|
|
if (response.data.data) {
|
|
|
@ -305,8 +307,7 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
install() {
|
|
|
|
install() {
|
|
|
|
adminApi
|
|
|
|
this.installCleanToken(this.installation)
|
|
|
|
.install(this.installation)
|
|
|
|
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.$log.debug('Installation response', response)
|
|
|
|
this.$log.debug('Installation response', response)
|
|
|
|
this.$message.success('安装成功!')
|
|
|
|
this.$message.success('安装成功!')
|
|
|
|