diff --git a/src/api/recovery.js b/src/api/recovery.js
deleted file mode 100644
index 2f3bf2d5..00000000
--- a/src/api/recovery.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import service from '@/utils/service'
-
-const baseUrl = '/api/admin/recoveries'
-
-const recoveryApi = {}
-
-recoveryApi.migrate = formData => {
- return service({
- url: `${baseUrl}/migrations/v0_4_3`,
- data: formData,
- method: 'post'
- })
-}
-
-export default recoveryApi
diff --git a/src/components/Upload/Upload.vue b/src/components/Upload/Upload.vue
deleted file mode 100644
index 31006ac8..00000000
--- a/src/components/Upload/Upload.vue
+++ /dev/null
@@ -1,112 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/components/index.js b/src/components/index.js
index 8cecd912..ad3322d3 100644
--- a/src/components/index.js
+++ b/src/components/index.js
@@ -3,13 +3,11 @@ import Vue from 'vue'
// pro components
import Ellipsis from '@/components/Ellipsis'
import FooterToolbar from '@/components/FooterToolbar'
-import Upload from '@/components/Upload/Upload'
import FilePondUpload from '@/components/Upload/FilePondUpload'
const _components = {
Ellipsis,
FooterToolbar,
- Upload,
FilePondUpload
}
diff --git a/src/core/lazy_lib/components_use.js b/src/core/lazy_lib/components_use.js
index 0003392e..da5befa0 100644
--- a/src/core/lazy_lib/components_use.js
+++ b/src/core/lazy_lib/components_use.js
@@ -41,7 +41,6 @@ import {
Tag,
TimePicker,
Tooltip,
- Upload,
Drawer,
Skeleton,
Comment,
@@ -91,7 +90,6 @@ Vue.use(Tabs)
Vue.use(Tag)
Vue.use(TimePicker)
Vue.use(Tooltip)
-Vue.use(Upload)
Vue.use(Skeleton)
Vue.use(Comment)
Vue.use(ConfigProvider)
diff --git a/src/views/system/Installation.vue b/src/views/system/Installation.vue
index 019910c2..f699f0c5 100644
--- a/src/views/system/Installation.vue
+++ b/src/views/system/Installation.vue
@@ -24,8 +24,6 @@
-
-
@@ -161,30 +159,6 @@
-
-
-
-
-
-
-
- 点击选择文件或将文件拖拽到此处
- 仅支持单个文件上传
-
-
-
import adminApi from '@/api/admin'
-import recoveryApi from '@/api/recovery'
export default {
data() {
return {
installation: {},
- migrationUploadName: 'file',
- migrationData: null,
stepCurrent: 0,
bloggerForm: this.$form.createForm(this)
}
@@ -255,22 +226,6 @@ export default {
}
})
},
- handleMigrationUpload(data) {
- this.$log.debug('Selected data', data)
- this.migrationData = data
- return new Promise((resolve, reject) => {
- this.$log.debug('Handle uploading')
- resolve()
- })
- },
- handleMigrationFileRemove(file) {
- this.$log.debug('Removed file', file)
- this.$log.debug('Migration file from data', this.migrationData.get(this.migrationUploadName))
- if (this.migrationData.get(this.migrationUploadName).uid === file.uid) {
- this.migrationData = null
- this.migrationFile = null
- }
- },
install() {
adminApi.install(this.installation).then(response => {
this.$log.debug('Installation response', response)
@@ -292,16 +247,7 @@ export default {
return
}
- // Handle migration
- if (this.migrationData) {
- recoveryApi.migrate(this.migrationData).then(response => {
- this.$log.debug('Migrated successfullly')
- this.$message.success('数据迁移成功!')
- this.install()
- })
- } else {
- this.install()
- }
+ this.install()
}
}
}