mirror of
				https://github.com/pure-admin/vue-pure-admin.git
				synced 2025-11-03 13:44:47 +08:00 
			
		
		
		
	fix: 关闭列设置出现滚动条的问题以及错误字 (#556)
This commit is contained in:
		
							parent
							
								
									d5fdc0449a
								
							
						
					
					
						commit
						03fff4befb
					
				@ -245,6 +245,7 @@ export default defineComponent({
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
              <el-popover
 | 
					              <el-popover
 | 
				
			||||||
                v-slots={reference}
 | 
					                v-slots={reference}
 | 
				
			||||||
 | 
					                placement="bottom-start"
 | 
				
			||||||
                popper-style={{ padding: 0 }}
 | 
					                popper-style={{ padding: 0 }}
 | 
				
			||||||
                width="160"
 | 
					                width="160"
 | 
				
			||||||
                trigger="click"
 | 
					                trigger="click"
 | 
				
			||||||
 | 
				
			|||||||
@ -63,7 +63,7 @@ class PureHttp {
 | 
				
			|||||||
      async (config: PureHttpRequestConfig): Promise<any> => {
 | 
					      async (config: PureHttpRequestConfig): Promise<any> => {
 | 
				
			||||||
        // 开启进度条动画
 | 
					        // 开启进度条动画
 | 
				
			||||||
        NProgress.start();
 | 
					        NProgress.start();
 | 
				
			||||||
        // 优先判断post/get等方法是否传入回掉,否则执行初始化设置等回掉
 | 
					        // 优先判断post/get等方法是否传入回调,否则执行初始化设置等回调
 | 
				
			||||||
        if (typeof config.beforeRequestCallback === "function") {
 | 
					        if (typeof config.beforeRequestCallback === "function") {
 | 
				
			||||||
          config.beforeRequestCallback(config);
 | 
					          config.beforeRequestCallback(config);
 | 
				
			||||||
          return config;
 | 
					          return config;
 | 
				
			||||||
@ -123,7 +123,7 @@ class PureHttp {
 | 
				
			|||||||
        const $config = response.config;
 | 
					        const $config = response.config;
 | 
				
			||||||
        // 关闭进度条动画
 | 
					        // 关闭进度条动画
 | 
				
			||||||
        NProgress.done();
 | 
					        NProgress.done();
 | 
				
			||||||
        // 优先判断post/get等方法是否传入回掉,否则执行初始化设置等回掉
 | 
					        // 优先判断post/get等方法是否传入回调,否则执行初始化设置等回调
 | 
				
			||||||
        if (typeof $config.beforeResponseCallback === "function") {
 | 
					        if (typeof $config.beforeResponseCallback === "function") {
 | 
				
			||||||
          $config.beforeResponseCallback(response);
 | 
					          $config.beforeResponseCallback(response);
 | 
				
			||||||
          return response.data;
 | 
					          return response.data;
 | 
				
			||||||
@ -159,7 +159,7 @@ class PureHttp {
 | 
				
			|||||||
      ...axiosConfig
 | 
					      ...axiosConfig
 | 
				
			||||||
    } as PureHttpRequestConfig;
 | 
					    } as PureHttpRequestConfig;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // 单独处理自定义请求/响应回掉
 | 
					    // 单独处理自定义请求/响应回调
 | 
				
			||||||
    return new Promise((resolve, reject) => {
 | 
					    return new Promise((resolve, reject) => {
 | 
				
			||||||
      PureHttp.axiosInstance
 | 
					      PureHttp.axiosInstance
 | 
				
			||||||
        .request(config)
 | 
					        .request(config)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user