App.vue 896 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <div id="app">
  3. <router-view />
  4. </div>
  5. </template>
  6. <script>
  7. import { request } from './utils/request';
  8. export default {
  9. data() {
  10. return {
  11. }
  12. },
  13. methods:{
  14. async getAuthCenter(){
  15. let params={}
  16. params.username = 'geyao'
  17. params.password = '65eb837a357e5b86567ad6a3345456ff'
  18. params.loginType=1
  19. params.systemName='SAAS'
  20. const res = await request(`/v1/authCenter/login/token`, 'post', params, false)
  21. const { result, msg,data } = res.data;
  22. if (result === 0) {
  23. console.log('app登录成功', data);
  24. } else {
  25. }
  26. },
  27. },
  28. mounted(){
  29. // this.getAuthCenter()
  30. }
  31. }
  32. </script>
  33. <style>
  34. @import './assets/css/main.css';
  35. </style>