# sy

> A Vue.js project

## Build Setup

``` bash
# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test
```

For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).



 <!-- window.addEventListener('message', async function (e, d) {

    if (e.data && e.data.accessToken) {

      
      var token = e.data.accessToken;
      var url =
        'https://portal.lishui.gov.cn:18080/api_2021/public/index.php/index/MicroPortalLogin/getUserInfoByAccessToken?token=' +token;
      var user = await fetch(url);
  
      var contentType = user.headers.get('Content-Type');
      console.log(contentType);
      console.log("return user");

      console.log(user.json());

      console.log("finishing");



    } else {

      window.location.replace("./#err");
    } -->



    // var data = JSON.parse(e.data);
    // alert(data);
    // var accessToken = data.accessToken;
    // alert(accessToken);

    //alert(e.data)
    // let data = JSON.parse(e.data);
    //  let accessToken = data.accessToken;


  })
