📖 code review:【分销】我的团队
							parent
							
								
									2317d14ef5
								
							
						
					
					
						commit
						8b239a0aae
					
				|  | @ -1,12 +1,12 @@ | |||
| import request from '@/sheep/request'; | ||||
| 
 | ||||
| const DiyTemplateApi = { | ||||
| 	// getUsedDiyTemplate: () => {
 | ||||
| 	//     return request({
 | ||||
| 	//         url: '/app-api/promotion/diy-template/used',
 | ||||
| 	//         method: 'GET',
 | ||||
| 	//     });
 | ||||
| 	// },
 | ||||
| 	getUsedDiyTemplate: () => { | ||||
| 	    return request({ | ||||
| 	        url: '/app-api/promotion/diy-template/used', | ||||
| 	        method: 'GET', | ||||
| 	    }); | ||||
| 	}, | ||||
| 	getDiyTemplate: (id) => { | ||||
| 		return request({ | ||||
| 			url: '/app-api/promotion/diy-template/get', | ||||
|  |  | |||
|  | @ -214,8 +214,8 @@ const request = (config) => { | |||
| 	} | ||||
| 	// TODO 芋艿:额外拼接
 | ||||
| 	if (config.url.indexOf('/app-api/') >= 0) { | ||||
| 		config.url = 'http://api-dashboard.yudao.iocoder.cn' + config.url; // 调用【云端】
 | ||||
| 		// config.url = 'http://127.0.0.1:48080' + config.url; // 调用【本地】
 | ||||
| 		// config.url = 'http://api-dashboard.yudao.iocoder.cn' + config.url; // 调用【云端】
 | ||||
| 		config.url = 'http://127.0.0.1:48080' + config.url; // 调用【本地】
 | ||||
| 		// config.url = 'http://yunai.natapp1.cc' + config.url; // 调用【natapp】
 | ||||
| 	} | ||||
| 	return http.middleware(config); | ||||
|  |  | |||
|  | @ -154,6 +154,7 @@ | |||
| 			}, | ||||
| 			value(newVal) { | ||||
| 				this.dataList = this.getDataList(newVal) | ||||
|         // TODO @芋艿:这块可能被错误的注释了,需要跟进下 | ||||
| 				// fix by mehaotian is_reset 在 uni-forms 中定义 | ||||
| 				// if(!this.is_reset){ | ||||
| 				// 	this.is_reset = false | ||||
|  | @ -162,6 +163,7 @@ | |||
| 			}, | ||||
| 			modelValue(newVal) { | ||||
| 				this.dataList = this.getDataList(newVal); | ||||
|         // TODO @芋艿:这块可能被错误的注释了,需要跟进下 | ||||
| 				// if(!this.is_reset){ | ||||
| 				// 	this.is_reset = false | ||||
| 				// 	this.formItem && this.formItem.setValue(newVal) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 YunaiV
						YunaiV