Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 暂时关闭点击喵图鉴进入详情 #359

Merged
merged 1 commit into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/pages/cat/cat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ const cat = reactive<Cat>({

const mainImgUrl = ref("");
const goBack = () => {
// eslint-disable-next-line no-undef
let pages = getCurrentPages(); // 当前页面
let beforePage = pages[pages.length - 2]; // 上一页
uni.navigateBack({
// eslint-disable-next-line @typescript-eslint/no-empty-function
success: function () {}
});
};
Expand Down
6 changes: 3 additions & 3 deletions src/pages/search/search-cats.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ const catId = ref("");

function onClickCatBox(avatarUrl: string, name: string, id: string) {
if (props.choose === "detail") {
uni.navigateTo({
url: `${Pages.Cat}?id=${id}`
});
// uni.navigateTo({
// url: `${Pages.Cat}?id=${id}`
// });
} else if (props.choose === "choose") {
catImage.value = avatarUrl;
catName.value = name;
Expand Down
Loading