- Edit
- components/HelloWorld.vue to test HMR
-
- Check out - create-vue, the official Vue + Vite starter -
-- Learn more about IDE Support for Vue in the - Vue Docs Scaling up Guide. -
-Click on the Vite and Vue logos to learn more
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/router/authentication.js b/src/router/authentication.js index 1ef2554..a86507e 100644 --- a/src/router/authentication.js +++ b/src/router/authentication.js @@ -1,8 +1,9 @@ -import authentication from '../views/authentication_login.vue' -import register from '../views/authentication_register.vue' +import authentication_main from '../views/authentication/authentication_main.vue' +import register from '../views/authentication/authentication_register.vue' +import authentication_login from "../views/authentication/authentication_login.vue"; export default [ - { path: '/', component: authentication }, - { path: '/login', component: authentication }, + { path: '/main', component: authentication_main }, + { path: '/login', component: authentication_login }, { path: '/register', component: register }, // { path: '/profile', component: Profile } ] diff --git a/src/services/authenticationService.js b/src/services/authenticationService.js index 9c190ac..0f312a5 100644 --- a/src/services/authenticationService.js +++ b/src/services/authenticationService.js @@ -9,7 +9,6 @@ export default { }; return axios.post(url, data) .then(response => { - alert(response.data.account); return response.data; }); }, diff --git a/src/services/organizationService.js b/src/services/organizationService.js index 0984050..431ab03 100644 --- a/src/services/organizationService.js +++ b/src/services/organizationService.js @@ -10,5 +10,24 @@ export default { return axios.post('http://localhost:8080/organizations/addOrganization', organization).then(response => { return response.data; }); - } + }, + deleteOrganization(organizationId) { + return axios.post('http://localhost:8080/organizations/deleteOrganization' , {organizationId:organizationId},{headers: { + 'Content-Type': 'application/json' // 设置 Content-Type 为 application/json + }}).then(response => { + return response.data; + }); + }, + updateOrganization(organization) { + return axios.post('http://localhost:8080/organizations/updateOrganization', organization).then(response => { + return response.data; + }); + }, + getOrganizationById(organizationId) { + return axios.post('http://localhost:8080/organizations/getOrganizationById', {organizationId:organizationId},{headers: { + 'Content-Type': 'application/json' // 设置 Content-Type 为 application/json + }}).then(response => { + return response.data; + }); + }, } \ No newline at end of file diff --git a/src/views/authentication/authentication_login.vue b/src/views/authentication/authentication_login.vue new file mode 100644 index 0000000..0ee1cba --- /dev/null +++ b/src/views/authentication/authentication_login.vue @@ -0,0 +1,90 @@ + +