jiaojiao7 4 年之前
父節點
當前提交
8975e00e68
共有 2 個文件被更改,包括 4 次插入1 次删除
  1. 1 0
      src/history/historytask.go
  2. 3 1
      src/web/templates/com/header.html

+ 1 - 0
src/history/historytask.go

@@ -108,6 +108,7 @@ func (this *HistoryData) HistoryTask(history_id string) {
 			xlsxArr = []map[string]interface{}{}
 			xlsxCount = 0
 		}()
+		projectIdMap = sync.Map{}
 	} else {
 		log.Println("初始化客户信息失败")
 	}

+ 3 - 1
src/web/templates/com/header.html

@@ -89,7 +89,9 @@
 									document.write("开发员")
 								}else if(role=="1"){
 									document.write("管理员")
-								}else{
+								}else if (role=="3"){
+									document.write("客户")
+								} else{
 									document.write("系统管理员")
 								}
 							</script>