{"ast":null,"code":"export default {\n name: \"Login_1\",\n data() {\n return {\n proxy: \"/examServer\",\n url: \"public_api/v1/api_for_vue_exam_2\",\n token: \"no token\",\n student_id: \"202140701358\"\n };\n },\n methods: {\n getToken() {\n const formData = new FormData();\n formData.append(\"student_id\", this.student_id);\n let url = this.proxy + this.url;\n let that = this;\n this.axios.post(url, formData, {\n headers: {\n 'Content-Type': 'multipart/form-data'\n }\n }).then(function (response) {\n that.token = response.data;\n }, function (error) {\n console.log(\"有可能是防火墙没有开\");\n console.log(error.data);\n });\n }\n },\n mounted() {\n window.myVue = this;\n }\n};","map":{"version":3,"names":["name","data","proxy","url","token","student_id","methods","getToken","formData","FormData","append","that","axios","post","headers","then","response","error","console","log","mounted","window","myVue"],"sources":["C:\\exam_app\\app_vue\\src\\components\\Login_1.vue"],"sourcesContent":["\r\n\r\n\r\n\r\n"],"mappings":"AAOI,eAAe;EACXA,IAAI,EAAE,SAAS;EACfC,IAAIA,CAAA,EAAE;IACF,OAAM;MACFC,KAAK,EAAC,aAAa;MACnBC,GAAG,EAAC,kCAAkC;MACtCC,KAAK,EAAC,UAAU;MAChBC,UAAU,EAAC;IACf;EACJ,CAAC;EACDC,OAAO,EAAC;IACJC,QAAQA,CAAA,EAAE;MAEN,MAAMC,QAAO,GAAI,IAAIC,QAAQ,CAAC,CAAC;MAE/BD,QAAQ,CAACE,MAAM,CAAC,YAAY,EAAC,IAAI,CAACL,UAAU,CAAC;MAE7C,IAAIF,GAAE,GAAI,IAAI,CAACD,KAAK,GAAC,IAAI,CAACC,GAAG;MAC7B,IAAIQ,IAAG,GAAI,IAAI;MAEf,IAAI,CAACC,KAAK,CAACC,IAAI,CACXV,GAAG,EACHK,QAAQ,EACR;QACIM,OAAO,EAAE;UACL,cAAc,EAAE;QACpB;MACJ,CAEJ,CAAC,CAACC,IAAI,CACF,UAAUC,QAAQ,EAAE;QAChBL,IAAI,CAACP,KAAI,GAAIY,QAAQ,CAACf,IAAI;MAC9B,CAAC,EACD,UAAUgB,KAAK,EAAE;QACbC,OAAO,CAACC,GAAG,CAAC,YAAY,CAAC;QACzBD,OAAO,CAACC,GAAG,CAACF,KAAK,CAAChB,IAAI,CAAC;MAC3B,CACJ;IAEJ;EACJ,CAAC;EACDmB,OAAOA,CAAA,EAAG;IACNC,MAAM,CAACC,KAAK,GAAC,IAAI;EACrB;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}