mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 13:10:26 +08:00 
			
		
		
		
	优化WebP相关提示和代码
This commit is contained in:
		@@ -100,7 +100,7 @@ func (this *IndexAction) RunPost(params struct {
 | 
			
		||||
 | 
			
		||||
	_, err = this.RPC().NodeClusterRPC().UpdateNodeClusterWebPPolicy(this.AdminContext(), &pb.UpdateNodeClusterWebPPolicyRequest{
 | 
			
		||||
		NodeClusterId:  params.ClusterId,
 | 
			
		||||
		WebpPolicyJSON: configJSON,
 | 
			
		||||
		WebPPolicyJSON: configJSON,
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	if err != nil {
 | 
			
		||||
 
 | 
			
		||||
@@ -180,7 +180,7 @@ func (this *ClusterHelper) createSettingMenu(cluster *pb.NodeCluster, info *pb.F
 | 
			
		||||
		"name":     this.Lang(actionPtr, codes.NodeClusterMenu_SettingWebP),
 | 
			
		||||
		"url":      "/clusters/cluster/settings/webp?clusterId=" + clusterId,
 | 
			
		||||
		"isActive": selectedItem == "webp",
 | 
			
		||||
		"isOn":     info != nil && info.WebpIsOn,
 | 
			
		||||
		"isOn":     info != nil && info.WebPIsOn,
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	items = this.filterMenuItems1(items, info, clusterId, selectedItem, actionPtr)
 | 
			
		||||
 
 | 
			
		||||
@@ -22,7 +22,7 @@
 | 
			
		||||
                            <input type="text" name="quality" v-model="webpPolicy.quality" style="width: 5em" maxlength="4"/>
 | 
			
		||||
                            <span class="ui label">%</span>
 | 
			
		||||
                        </div>
 | 
			
		||||
                        <p class="comment">取值在0到100之间,0表示默认;数值越大生成的图像越清晰,文件尺寸也会越大,同时消耗的系统资源越多(在低配置的边缘节点上建议不超过50%)。</p>
 | 
			
		||||
                        <p class="comment">取值在0到100之间,0表示自动调节;数值越大生成的图像越清晰,文件尺寸也会越大,同时消耗的系统资源越多(在低配置的边缘节点上建议不超过50%)。</p>
 | 
			
		||||
                    </td>
 | 
			
		||||
                </tr>
 | 
			
		||||
                <tr>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user