refactor: 移除多余的console.log语句以清理代码
清理了多个组件和视图中的console.log语句,以提高代码的可读性和维护性,避免在生产环境中输出不必要的调试信息。
This commit is contained in:
@@ -231,7 +231,6 @@ let getRecommendList = () => {
|
||||
type: ListSelectBtn.selectType,
|
||||
pagevalue: pagevalue.value,
|
||||
}).then(res => {
|
||||
// console.log(res)
|
||||
if (res.code === 200) {
|
||||
if (res.data.pagevalue) {
|
||||
if (pages.value === 1) waterfallList.value = []
|
||||
|
||||
@@ -834,7 +834,6 @@ let scrollWidth = ref(null)
|
||||
let scrollMove = false
|
||||
//点击方向按钮
|
||||
let moveImageList = type => {
|
||||
console.log("type", type, imgListTab.value, imageLIstLeft)
|
||||
if (type === "right" && imgScrollBottom()) return
|
||||
if ((type === "left" && imgListTab.value === 0) || (imgListTab.value === imageLIstLeft.value.length - 1 && type === "right")) return
|
||||
type === "left" ? imgListTab.value-- : imgListTab.value++
|
||||
|
||||
@@ -1154,7 +1154,6 @@ export default {
|
||||
formData.append("name", target.name) // 文件名
|
||||
formData.append("type", type) // 文件名
|
||||
formData.append("data", this.uploadData) // 文件名
|
||||
console.log("formData", formData)
|
||||
// this.$axios.post('/tenement/pc/api/publish/upload', formData).then(res => {
|
||||
this.$axios
|
||||
.post("https://oss.gter.net/upload", formData)
|
||||
|
||||
@@ -77,9 +77,6 @@ let setInitial = () => {
|
||||
|
||||
//获取搜索数据
|
||||
let getDataList = (data, type = true) => {
|
||||
// console.log("11414");
|
||||
// console.log(data,type)
|
||||
// console.log(type);
|
||||
if (!type) {
|
||||
//是否继续搜索
|
||||
seachSelectData.data.tabType !== "apartment" ? (pageList.value = []) : (listApartment.value = [])
|
||||
@@ -102,10 +99,8 @@ let getDataList = (data, type = true) => {
|
||||
} else {
|
||||
seachApi = api.apartment(postData)
|
||||
}
|
||||
// console.log("555");
|
||||
seachApi.then(res => {
|
||||
if (res.code === 200) {
|
||||
// console.log(res.data)
|
||||
dataList.data = res.data.data
|
||||
if (res.data.data.length < 20) {
|
||||
loadingText.value = ` 到底了 `
|
||||
|
||||
Reference in New Issue
Block a user