Skip to content

Commit

Permalink
feat: 暂时关闭点击喵图鉴进入详情
Browse files Browse the repository at this point in the history
  • Loading branch information
oustr authored and fuqihao.foliet committed Aug 7, 2023
1 parent 234fb9e commit 168e273
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
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

0 comments on commit 168e273

Please sign in to comment.