Updated tests
gitea/salix-front/pipeline/head There was a failure building this commit
Details
gitea/salix-front/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
c16ef7e783
commit
807a6fa16f
|
@ -61,7 +61,7 @@ function responseError(error) {
|
|||
router.push({ path: '/login' });
|
||||
}
|
||||
|
||||
return Promise.reject(error);
|
||||
return Promise.resolve(error);
|
||||
}
|
||||
|
||||
axios.interceptors.response.use((response) => response, responseError);
|
||||
|
|
|
@ -60,6 +60,11 @@ async function fetch() {
|
|||
params: { filter },
|
||||
});
|
||||
|
||||
if (!data) {
|
||||
isLoading.value = false;
|
||||
return;
|
||||
}
|
||||
|
||||
hasMoreData.value = data.length === rowsPerPage;
|
||||
|
||||
for (const row of data) rows.value.push(row);
|
||||
|
|
|
@ -72,7 +72,7 @@ export function useNavigation() {
|
|||
event.stopPropagation();
|
||||
|
||||
const params = { moduleName: salixModules[moduleName] };
|
||||
const query = 'api/starredModules/toggleStarredModule';
|
||||
const query = 'StarredModules/toggleStarredModule';
|
||||
await axios.post(query, params);
|
||||
|
||||
updateFavorites(moduleName);
|
||||
|
|
|
@ -22,6 +22,8 @@ async function onSubmit() {
|
|||
password: password.value,
|
||||
});
|
||||
|
||||
if (!data) return;
|
||||
|
||||
await session.login(data.token, keepLogin.value);
|
||||
|
||||
quasar.notify({
|
||||
|
|
Loading…
Reference in New Issue