mirror of
				https://github.com/pure-admin/vue-pure-admin.git
				synced 2025-11-03 13:44:47 +08:00 
			
		
		
		
	chore: update
This commit is contained in:
		
							parent
							
								
									3092728f17
								
							
						
					
					
						commit
						0c862c7f62
					
				@ -15,7 +15,7 @@ export default [
 | 
				
			|||||||
            roles: ["admin"],
 | 
					            roles: ["admin"],
 | 
				
			||||||
            accessToken: "eyJhbGciOiJIUzUxMiJ9.admin",
 | 
					            accessToken: "eyJhbGciOiJIUzUxMiJ9.admin",
 | 
				
			||||||
            refreshToken: "eyJhbGciOiJIUzUxMiJ9.adminRefresh",
 | 
					            refreshToken: "eyJhbGciOiJIUzUxMiJ9.adminRefresh",
 | 
				
			||||||
            expires: "2023/10/30 00:00:00"
 | 
					            expires: "2030/10/30 00:00:00"
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
      } else {
 | 
					      } else {
 | 
				
			||||||
@ -27,7 +27,7 @@ export default [
 | 
				
			|||||||
            roles: ["common"],
 | 
					            roles: ["common"],
 | 
				
			||||||
            accessToken: "eyJhbGciOiJIUzUxMiJ9.common",
 | 
					            accessToken: "eyJhbGciOiJIUzUxMiJ9.common",
 | 
				
			||||||
            refreshToken: "eyJhbGciOiJIUzUxMiJ9.commonRefresh",
 | 
					            refreshToken: "eyJhbGciOiJIUzUxMiJ9.commonRefresh",
 | 
				
			||||||
            expires: "2023/10/30 00:00:00"
 | 
					            expires: "2030/10/30 00:00:00"
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
				
			|||||||
@ -13,7 +13,7 @@ export default [
 | 
				
			|||||||
            accessToken: "eyJhbGciOiJIUzUxMiJ9.newAdmin",
 | 
					            accessToken: "eyJhbGciOiJIUzUxMiJ9.newAdmin",
 | 
				
			||||||
            refreshToken: "eyJhbGciOiJIUzUxMiJ9.newAdminRefresh",
 | 
					            refreshToken: "eyJhbGciOiJIUzUxMiJ9.newAdminRefresh",
 | 
				
			||||||
            // `expires`选择这种日期格式是为了方便调试,后端直接设置时间戳或许更方便(每次都应该递增)。如果后端返回的是时间戳格式,前端开发请来到这个目录`src/utils/auth.ts`,把第`38`行的代码换成expires = data.expires即可。
 | 
					            // `expires`选择这种日期格式是为了方便调试,后端直接设置时间戳或许更方便(每次都应该递增)。如果后端返回的是时间戳格式,前端开发请来到这个目录`src/utils/auth.ts`,把第`38`行的代码换成expires = data.expires即可。
 | 
				
			||||||
            expires: "2023/10/30 23:59:59"
 | 
					            expires: "2030/10/30 23:59:59"
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
      } else {
 | 
					      } else {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user