Skip to content

Commit

Permalink
clear console
Browse files Browse the repository at this point in the history
  • Loading branch information
weizhanzhan committed Aug 17, 2022
1 parent 125711c commit 04da2b7
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 24 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ export default {
name: 'App',
setup() {
let box = ref(null);
console.log(box.value);
// 由于 template 中的 div 属性 ref 引用了一个对象 box,因此 box 将与这个 div 执行绑定。
// 但由于 setup 执行时期,还未创建实际的 div,所以如果要进行与 box 的交互,必须在生命周期中间执行获取。
Expand Down Expand Up @@ -297,7 +296,6 @@ instance.interceptors.response.use(
if (successCode.indexOf(code) !== -1) {
return res;
} else {
console.log(msg);
return Promise.reject();
}
},
Expand All @@ -307,7 +305,6 @@ instance.interceptors.response.use(
return Promise.reject(error);
} else {
const { message } = error;
console.log(message);
return Promise.reject(error);
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/mock/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ const useVideoCurrent = () => {
return new Promise<Array<{ key: number }>>((resolve, reject) => {
const { current } = state;
let result: Array<{ key: number }> = [];
console.log(current);
if (current + 1 >= videoList.length) {
const start = current - 2;
const end = videoList.length;
Expand All @@ -101,7 +100,6 @@ const useVideoCurrent = () => {
} else {
const start = current - 2;
const end = current + 3;
console.log(start);
result = videoList.slice(start, end);
}
}
Expand Down
12 changes: 0 additions & 12 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,26 +68,14 @@ const router = createRouter({
routes
});

// const routerPush = router.push;
// router.push = function(to) {s
// console.log("路由拦截push");
// return routerPush.call(this, to).catch(error => error);
// };

// router.back = function() {
// console.log("路由拦截back");
// return router.go(-1);
// };
function RouterStack(router: Router) {
// const stack = [];
router.afterEach((to, from) => {
if (!store.state.user.loginUser) {
store.commit("setUserInfo", useRandomName());
}
console.log("store", store.state.user.loginUser);

console.log(to, from);
console.log(provideStore.planList.value);
});
return router;
}
Expand Down
2 changes: 0 additions & 2 deletions src/utils/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ instance.interceptors.response.use(
if (response && response.data) {
return Promise.reject(error);
} else {
const { message } = error;
console.log(message);
return Promise.reject(error);
}
}
Expand Down
1 change: 0 additions & 1 deletion src/views/shop/components/GoodLeft.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export default defineComponent({
let bscroll = reactive({});
onMounted(() => {
const wrapper = document.getElementById("wrapper") as HTMLElement;
console.log(wrapper);
bscroll = new BScroll(wrapper, {
// movable: true
Expand Down
3 changes: 0 additions & 3 deletions src/views/shop/components/GoodList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,12 @@ export default defineComponent({
const headerHeightAndContentTop = ref(INIT_HEIGHT);
const bindContainertDom = (el: HTMLElement) => (containerDom = el);
const bindContentDom = (el: HTMLElement) => (contentElement = el);
console.log(contentElement);
const scroll = function() {
const top = containerDom?.scrollTop || 0;
// const mintop =
// INIT_HEIGHT - (top > MAX_TOP_SCROLL ? MAX_TOP_SCROLL : top);
// headerHeightAndContentTop.value = mintop;
console.log(top);
if (top > MAX_TOP_SCROLL && contentElement) {
console.log("超过了");
contentElement.style.position = "absolute";
contentElement.style.top = INIT_HEIGHT - MAX_TOP_SCROLL + "px";
Expand Down
1 change: 0 additions & 1 deletion src/views/shop/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default defineComponent({
setup() {
let refs: unknown;
const bindRef = (el: unknown) => {
console.log(el);
refs = el;
};
onMounted(() => {
Expand Down

1 comment on commit 04da2b7

@vercel
Copy link

@vercel vercel bot commented on 04da2b7 Aug 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.