浏览代码

Merge pull request #90 from IceWhaleTech/dev

update web
link 3 年之前
父节点
当前提交
903c73fafb
共有 6 个文件被更改,包括 4 次插入3 次删除
  1. 3 2
      route/v1/disk.go
  2. 二进制
      web/img/USB.3ba78dec.png
  3. 1 1
      web/js/2.js
  4. 0 0
      web/js/3.js
  5. 0 0
      web/js/4.js
  6. 0 0
      web/js/app.js

+ 3 - 2
route/v1/disk.go

@@ -1,6 +1,7 @@
 package v1
 
 import (
+	"fmt"
 	"net/http"
 	"reflect"
 	"strconv"
@@ -309,12 +310,12 @@ func AddPartition(c *gin.Context) {
 	formatBool := true
 	for formatBool {
 		currentDisk = service.MyService.Disk().GetDiskInfo(path)
-		if len(currentDisk.Children) != 1 {
+		fmt.Println(currentDisk.Children)
+		if len(currentDisk.Children) > 0 {
 			formatBool = false
 			break
 		}
 		time.Sleep(time.Second)
-
 	}
 	currentDisk = service.MyService.Disk().GetDiskInfo(path)
 	if len(currentDisk.Children) != 1 {

二进制
web/img/USB.3ba78dec.png


文件差异内容过多而无法显示
+ 1 - 1
web/js/2.js


文件差异内容过多而无法显示
+ 0 - 0
web/js/3.js


文件差异内容过多而无法显示
+ 0 - 0
web/js/4.js


文件差异内容过多而无法显示
+ 0 - 0
web/js/app.js


部分文件因为文件数量过多而无法显示