Browse Source

去除打印

canghailong 2 months ago
parent
commit
88e82fcda5

+ 0 - 2
src/router/index.js

@@ -31,7 +31,6 @@ const routes_404 = [
 // 系统路由
 // const routes = [...systemRouter, ...whiteListRouters, ...routes_404,...forum,...student,...portal]
 const routes = [...whiteListRouters, ...routes_404,...forum,...student,...portal]
-console.log('什么路由',routes)
 const router = createRouter({
 	history: createWebHistory(),
 	routes
@@ -50,7 +49,6 @@ const exportWhiteListFromRouter = (router) => {
 	return res
 }
 const whiteList = exportWhiteListFromRouter(whiteListRouters)
-console.log('拥有的白名单',whiteList)
 router.beforeEach(async (to, from, next) => {
 	NProgress.start()
 	EventBus.emit('getCounts')

+ 0 - 5
src/views/portal/components/UserHeader.vue

@@ -88,7 +88,6 @@
 
 
 	const userInfo = computed(() => {
-		console.log('用户信息',global_store.userInfo)
 		return global_store.userInfo
 	})
 
@@ -163,14 +162,11 @@
 	const getCounts = async () => {
 // 获取路径部分
 		const currentPath = window.location.pathname;
-		console.log('当前路径',' currentPath ',currentPath)
 		if(currentPath != '/tlogin' && currentPath != '/jump'){
 			if(tool.data.get('TOKEN')){
 				//站内信
 				let funcType1 = await getCount({funcType : 1})
-				console.log('获取未读数量 站内信',funcType1)
 				let funcType2 = await getCount({funcType : 2})
-				console.log('获取未读数量 公告',funcType2)
 				myMsgCount.value = funcType1.data.unreadCount
 				announcementLookManagementCount.value = funcType2.data.unreadCount
 				allCount.value = funcType1.data.unreadCount+ funcType2.data.unreadCount
@@ -184,7 +180,6 @@
 
 
 	onMounted(() => {
-		console.log('都掏出来',userInfo)
 		getCounts()
 	})
 

+ 0 - 1
src/views/resourceCenter/components/Correlation.vue

@@ -86,7 +86,6 @@ const recommendations = ref([
 const getList = () => {
 	list(currentPage)
 		.then((res) => {
-			console.log('下面列表获取', res)
 			if (res.code == 200) {
 				recommendations.value = res.data.records
 				currentPage.current = res.data.current

+ 0 - 9
src/views/resourceCenter/components/MyRadioButtonGroup.vue

@@ -14,15 +14,6 @@
 	const emit = defineEmits(['update:modelValue'])
 	// 使用 ref 来包装 value 以确保响应性
 	const valueRef = ref(props.modelValue)
-
-	// 监听 group.value 的变化
-	watch(
-		() => valueRef.value,
-		(newVal, oldVal) => {
-			console.log('选择的右边胡麻:', newVal, oldVal)
-		}
-	)
-
 	// 提供给子组件的上下文
 	const groupContext = {
 		value: valueRef,

+ 0 - 9
src/views/resourceCenter/components/MyRadioButtonOffOut.vue

@@ -49,15 +49,6 @@
 	}
 
 	const handleClick = () => {
-		console.log(
-			'点击了 子布局',
-			' isActive.value ',
-			isActive.value,
-			' props.value ',
-			props.value,
-			' group.value ',
-			group.value
-		)
 		if (!isActive.value) {
 			group.changeValue(props.value)
 		}

+ 0 - 1
src/views/resourceCenter/components/ResourceList.vue

@@ -223,7 +223,6 @@ const getList = () => {
 	json.date = undefined
 	list({...json, ...queryData.value})
 		.then((res) => {
-			console.log('下面列表获取', res)
 			if (res.code == 200) {
 				resources.value = res.data.records
 				total.value = res.data.total

+ 0 - 1
src/views/resourceCenter/components/SidebarRecommend.vue

@@ -86,7 +86,6 @@ const recommendations = ref([
 const getList = () => {
 	list(currentPage)
 		.then((res) => {
-			console.log('下面列表获取', res)
 			if (res.code == 200) {
 				recommendations.value = res.data.records
 				currentPage.current = res.data.current

+ 0 - 5
src/views/resourceDetails/components/TallList.vue

@@ -169,7 +169,6 @@
 	const getList = () => {
 		list(currentPage)
 			.then((res) => {
-				console.log('下面列表获取', res)
 				if (res.code == 200) {
 					equalList.value = res.data.records
 					currentPage.current = res.data.current
@@ -276,7 +275,6 @@
 	const getPageCommentNew = (data) => {
 		list({ ...currentPage, ...data })
 			.then((res) => {
-				console.log('下面列表获取getPageCommentNew', res)
 				if (res.code == 200) {
 					equalList.value = res.data.records
 					currentPage.current = res.data.current
@@ -358,9 +356,6 @@
 		color: white;
 	}
 
-	.tab-switcher div:not(:last-child) {
-	}
-
 	.user-info {
 		display: flex;
 		align-items: center;