refactor: Discover Router Save done.
This commit is contained in:
@@ -128,7 +128,6 @@ export default defineStore('filesStore', {
|
||||
this.$router.push({name: 'Upload'});
|
||||
Swal.close(); // 關閉進度條
|
||||
} catch(error) {
|
||||
console.log(error);
|
||||
if(error.response.status === 422) {
|
||||
// msg: 'not in UTF-8' | 'insufficient columns' | 'the csv file is empty' | 'the filename does not ends with .csv'
|
||||
// type: 'encoding' | 'insufficient_columns' | 'empty' | 'name_suffix'
|
||||
|
||||
@@ -49,8 +49,6 @@ export default defineStore('loginStore', {
|
||||
async refreshTokenLogin() {
|
||||
const api = '/api/oauth/token';
|
||||
const refreshToken = document.cookie.replace(/(?:(?:^|.*;\s*)luciaRefreshToken\s*\=\s*([^;]*).*$)|^.*$/, "$1");
|
||||
console.log(document.cookie);
|
||||
|
||||
|
||||
this.auth.grant_type = 'refresh_token';
|
||||
this.auth.refresh_token = refreshToken;
|
||||
|
||||
Reference in New Issue
Block a user