refactor: Discover Router Save done.

This commit is contained in:
chiayin
2024-03-19 16:29:29 +08:00
parent 6663b48159
commit 483f6a026d
8 changed files with 9 additions and 68 deletions

View File

@@ -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'

View File

@@ -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;