unknown 3 years ago
parent
commit
a077f10017
2 changed files with 5 additions and 0 deletions
  1. 2 0
      build.go
  2. 3 0
      src/pages/other/file-search.vue

+ 2 - 0
build.go

@@ -18,8 +18,10 @@ func main() {
 	target += *dir + "/"
 	fmt.Println("target_dir", target)
 	os.RemoveAll(target + "static")
+	os.RemoveAll(target + "manage")
 	os.Remove(target + "index.html")
 	os.Remove(target + "favicon.ico")
+	os.Remove(target + "favicon.jpg")
 
 	copyDir("./dist", target)
 }

+ 3 - 0
src/pages/other/file-search.vue

@@ -151,6 +151,7 @@ export default {
       })
     },
     "searchInfo.category"(val){
+      this.page =1
       this.getArticalList()
     }
   },
@@ -170,6 +171,7 @@ export default {
       return data.getLeader(departmentId, this.userDepartments)>1;
     },
     handleSizeChange(size){
+      this.page =1
       this.pageSize = size
       this.getArticalList()
     },
@@ -178,6 +180,7 @@ export default {
       this.getArticalList()
     },
     selectDepartment(item){
+      this.page =1
       this.departmentId = +item.departmentId
       localStorage.setItem("@departmentId", this.departmentId)
       this.getArticalList()