Skip to content

Commit

Permalink
Remove unused logging. Use vue-router's query parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Tnze committed Oct 7, 2024
1 parent e2cecae commit 8590e89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/components/recipe-manager/RecipePanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,17 +143,16 @@ onMounted(async () => {
craftTypeRemoteMethod();

// 接受跳转参数
const searchParams = new URLSearchParams(window.location.search);
if (searchParams.has('recipeId')) {
const recipeId = searchParams.get('recipeId');
const recipeId = router.currentRoute.value.query.recipeId;
if (recipeId !== undefined) {
const source = await settingStore.getDataSource;
if (source.recipeInfo == undefined) {
ElMessage.error($t("datasource-unsupport-recipe-info"));
return;
}
try {
isRecipeTableLoading.value = true;
var recipeInfo = await source.recipeInfo(recipeId);
var recipeInfo = await source.recipeInfo(Number(recipeId));
} catch (e: any) {
ElMessage.error(String(e));
isRecipeTableLoading.value = false;
Expand Down
1 change: 0 additions & 1 deletion src/components/recipe-manager/beta-xivapi-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ export class BetaXivApiRecipeSource {
if (!resp.ok) {
this.checkRespError(data)
}
console.log(data);
return BetaXivApiRecipeSource.recipeRowsToRecipe(data);
}

Expand Down

0 comments on commit 8590e89

Please sign in to comment.