|
@@ -604,14 +604,10 @@ export default {
|
|
|
var obj = this.im_File
|
|
|
if (!obj.files) { return }
|
|
|
var f = obj.files[0]
|
|
|
- console.log(f)
|
|
|
- // var a_name = f.name.split('.')
|
|
|
- // if (a_name[1] === 'xmind') {
|
|
|
var formData_s = new FormData()
|
|
|
formData_s.append('file', f)
|
|
|
axios.post('http://star.xiaojukeji.com/upload/img.node', formData_s, { withCredentials: false, headers: { 'Content-Type': 'multipart/form-data' }}).then(res => {
|
|
|
if (res) {
|
|
|
- console.log(res)
|
|
|
this.grid_xmind.push({ 'name': f.name, 'url': 'http:' + res.data.url })
|
|
|
var xmind_code = {
|
|
|
id: this.startId,
|
|
@@ -744,12 +740,7 @@ export default {
|
|
|
if (this.startId === '') {
|
|
|
this.$message({ message: '提示,👈请选择目录', type: 'success', duration: 1000, offset: 150 })
|
|
|
} else {
|
|
|
- if (this.grid_xmind.length > 2) {
|
|
|
- this.$message({ message: '文件不能大于3条', type: 'success', duration: 1000, offset: 150 })
|
|
|
- } else {
|
|
|
- this.$refs.im_File.click()
|
|
|
- }
|
|
|
- if (this.grid_xmind.length === null) { this.$refs.im_File.click() }
|
|
|
+ this.$refs.im_File.click()
|
|
|
}
|
|
|
},
|
|
|
|