remove mock login
This commit is contained in:
		| @@ -26,7 +26,7 @@ const users = { | ||||
| export default [ | ||||
|   // user login | ||||
|   { | ||||
|     url: '/user/login', | ||||
|     url: '/user/loogin', | ||||
|     type: 'post', | ||||
|     response: config => { | ||||
|       const { username } = config.body | ||||
|   | ||||
| @@ -3,6 +3,7 @@ import request from '@/utils/request' | ||||
| export function login(data) { | ||||
|   return request({ | ||||
|     url: '/user/login', | ||||
|     baseURL: 'http://localhost:8888', | ||||
|     method: 'post', | ||||
|     data | ||||
|   }) | ||||
| @@ -12,6 +13,7 @@ export function getInfo(token) { | ||||
|   return request({ | ||||
|     url: '/user/info', | ||||
|     method: 'get', | ||||
|     authorization: token, | ||||
|     params: { token } | ||||
|   }) | ||||
| } | ||||
| @@ -27,7 +29,8 @@ export function sendAnalyzeRequest(token) { | ||||
|   return request({ | ||||
|     url: '/testpredict', | ||||
|     method: 'get', | ||||
|     baseURL: 'http://localhost:8010', | ||||
|     baseURL: 'http://localhost:8888', | ||||
|     authorization: token, | ||||
|     params: { token } | ||||
|   }) | ||||
| } | ||||
| @@ -36,7 +39,8 @@ export function sendAnalyzeOnDateRequest(token, fromDate, toDate) { | ||||
|   return request({ | ||||
|     url: '/predictOnDate', | ||||
|     method: 'get', | ||||
|     baseURL: 'http://localhost:8010', | ||||
|     baseURL: 'http://localhost:8888', | ||||
|     authorization: token, | ||||
|     params: { token, fromDate, toDate } | ||||
|   }) | ||||
| } | ||||
|   | ||||
							
								
								
									
										26
									
								
								src/views/plot/index.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								src/views/plot/index.vue
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | ||||
| <template> | ||||
|   <!-- <div class="vue-spinner"> | ||||
|     <Circle9 /> | ||||
|     <h1>Analyzing....</h1> | ||||
|   </div> --> | ||||
|     <iframe src="http://localhost:808" width=1300 height=600></iframe> | ||||
| </template> | ||||
|  | ||||
| <script> | ||||
| import Circle9 from 'vue-loading-spinner/src/components/Circle9' | ||||
| export default { | ||||
|   name: 'plot', | ||||
|   components: { | ||||
|     Circle9 | ||||
|   } | ||||
| } | ||||
| </script> | ||||
|  | ||||
| <style scoped> | ||||
| 	.vue-spinner{ | ||||
| 		margin: 100px; | ||||
| 		width: 50%; | ||||
| 		height: 50%; | ||||
| 		/*overflow: hidden;*/ | ||||
| 	} | ||||
| </style> | ||||
		Reference in New Issue
	
	Block a user