格式不正确', {icon: 5, shift: 6});
				return false;
			}
			if(data.field.authName == ''){
				layer.msg("认证名称不能为空", {icon: 5, shift: 6});
				return false;
			}
			if(data.field.authPassword == ''){
				layer.msg("认证密码不能为空", {icon: 5, shift: 6});
				return false;
			}
			//增加类型
			data.field.itemType = 3;
			$.ajax({
				url: '/globalConfig/imageRepo/addOrUpdate',
				type: 'POST',
				dataType: "json",
				contentType: 'application/json;charset=UTF-8',
				da