4 Commits 
		
	
	
		
			ed5ed3b0ff
			...
			75aefb050f
		
	
    | Author | SHA1 | Message | Date | 
|---|---|---|---|
| 
							
							
								 | 
						75aefb050f | 
							
							
								
								主页、电子书完成
							
							
							
							
								
 | 
						7 months ago | 
| 
							
							
								 | 
						46068b90b7 | 
							
							
								
								Merge branch 'guoyanqiang' into dev
							
							
							
							
								
 | 
						7 months ago | 
| 
							
							
								 | 
						14a8869df9 | 
							
							
								
								haha
							
							
							
							
								
 | 
						7 months ago | 
| 
							
							
								 | 
						c94de16b83 | 
							
							
								
								4.16
							
							
							
							
								
 | 
						7 months ago | 
				 8 changed files with 281 additions and 298 deletions
			
			
		- 
					10src/api/boguApi.js
 - 
					7src/api/bookApi.js
 - 
					10src/api/zhiboApi.js
 - 
					77src/views/BookView.vue
 - 
					258src/views/ClubView.vue
 - 
					37src/views/HomeView.vue
 - 
					151src/views/LiveView.vue
 - 
					27vite.config.js
 
@ -0,0 +1,10 @@ | 
			
		|||||
 | 
				import service from "./indexApi"; | 
			
		||||
 | 
				const boguApi = { | 
			
		||||
 | 
				  selectBogu(queryType){ | 
			
		||||
 | 
				    //查询首页的数据
 | 
			
		||||
 | 
				    return service.post('/api/show/getShowList', {queryType: queryType}); | 
			
		||||
 | 
				  } | 
			
		||||
 | 
				
 | 
			
		||||
 | 
				} | 
			
		||||
 | 
				
 | 
			
		||||
 | 
				export default boguApi; | 
			
		||||
@ -0,0 +1,7 @@ | 
			
		|||||
 | 
				import service from "./indexApi"; | 
			
		||||
 | 
				const bookApi = { | 
			
		||||
 | 
				  getBookList() { | 
			
		||||
 | 
				    return service.post("/api/ebooks/getEbookList"); | 
			
		||||
 | 
				  }, | 
			
		||||
 | 
				} | 
			
		||||
 | 
				export default bookApi; | 
			
		||||
@ -0,0 +1,10 @@ | 
			
		|||||
 | 
				import service from "./indexApi"; | 
			
		||||
 | 
				const zhiboApi = { | 
			
		||||
 | 
				  selectZhibo(queryType){ | 
			
		||||
 | 
				    //查询首页的数据
 | 
			
		||||
 | 
				    return service.post('/api/live/getLiveList', {queryType: queryType}); | 
			
		||||
 | 
				  } | 
			
		||||
 | 
				
 | 
			
		||||
 | 
				} | 
			
		||||
 | 
				
 | 
			
		||||
 | 
				export default zhiboApi; | 
			
		||||
@ -1,18 +1,25 @@ | 
			
		|||||
import { fileURLToPath, URL } from 'node:url' | 
				 | 
			
		||||
 | 
				import { fileURLToPath, URL } from 'node:url'; | 
			
		||||
 | 
				import { defineConfig } from 'vite'; | 
			
		||||
 | 
				import vue from '@vitejs/plugin-vue'; | 
			
		||||
 | 
				import vueDevTools from 'vite-plugin-vue-devtools'; | 
			
		||||
 | 
				
 | 
			
		||||
import { defineConfig } from 'vite' | 
				 | 
			
		||||
import vue from '@vitejs/plugin-vue' | 
				 | 
			
		||||
import vueDevTools from 'vite-plugin-vue-devtools' | 
				 | 
			
		||||
 | 
				 | 
			
		||||
// https://vite.dev/config/
 | 
				 | 
			
		||||
export default defineConfig({ | 
				export default defineConfig({ | 
			
		||||
 | 
				  server: { | 
			
		||||
 | 
				    proxy: { | 
			
		||||
 | 
				      '/api': { | 
			
		||||
 | 
				        target: 'http://192.168.8.235:8000', // 后端服务器地址
 | 
			
		||||
 | 
				        changeOrigin: true, // 改变请求源
 | 
			
		||||
 | 
				        rewrite: (path) => path.replace(/^\/api/, '') // 重写路径,去掉 /api
 | 
			
		||||
 | 
				      } | 
			
		||||
 | 
				    } | 
			
		||||
 | 
				  }, | 
			
		||||
  plugins: [ | 
				  plugins: [ | 
			
		||||
    vue(), | 
				    vue(), | 
			
		||||
    vueDevTools(), | 
				 | 
			
		||||
 | 
				    vueDevTools() | 
			
		||||
  ], | 
				  ], | 
			
		||||
  resolve: { | 
				  resolve: { | 
			
		||||
    alias: { | 
				    alias: { | 
			
		||||
      '@': fileURLToPath(new URL('./src', import.meta.url)) | 
				      '@': fileURLToPath(new URL('./src', import.meta.url)) | 
			
		||||
    }, | 
				 | 
			
		||||
  }, | 
				 | 
			
		||||
}) | 
				 | 
			
		||||
 | 
				    } | 
			
		||||
 | 
				  } | 
			
		||||
 | 
				}); | 
			
		||||
						Write
						Preview
					
					
					Loading…
					
					Cancel
						Save
					
		Reference in new issue