Files
20250612/app_vue/node_modules/.cache/babel-loader/e7f673122eef1f171cdf9cfe43f0c860f799e4f215c45ea4cfd34b4162baa1ab.json
2025-06-20 18:01:48 +08:00

1 line
2.6 KiB
JSON

{"ast":null,"code":"import { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\";\nconst _hoisted_1 = {\n id: \"token\"\n};\nexport function render(_ctx, _cache, $props, $setup, $data, $options) {\n return _openBlock(), _createElementBlock(_Fragment, null, [_cache[1] || (_cache[1] = _createElementVNode(\"br\", null, null, -1 /* CACHED */)), _createElementVNode(\"div\", _hoisted_1, _toDisplayString($data.token), 1 /* TEXT */), _cache[2] || (_cache[2] = _createElementVNode(\"br\", null, null, -1 /* CACHED */)), _createElementVNode(\"input\", {\n type: \"button\",\n id: \"getToken\",\n onClick: _cache[0] || (_cache[0] = (...args) => $options.getToken && $options.getToken(...args)),\n value: \"getToken\"\n })], 64 /* STABLE_FRAGMENT */);\n}","map":{"version":3,"names":["id","_createElementVNode","_hoisted_1","_toDisplayString","$data","token","type","onClick","_cache","args","$options","getToken","value"],"sources":["C:\\exam_app\\app_vue\\src\\components\\GetToken_1.vue"],"sourcesContent":["<template>\r\n <br>\r\n <div id=\"token\">{{token}}</div><br>\r\n <input type=\"button\" id=\"getToken\" @click=\"getToken\" value=\"getToken\">\r\n</template>\r\n\r\n<script>\r\n export default {\r\n name: \"dad_666\",\r\n data(){\r\n return{\r\n domain:\"http://10.128.128.249:8022/\",\r\n url:\"public_api/v1/api_for_vue_exam_1?student_id=\",\r\n student_id:\"202241401095\",\r\n token:\"\"\r\n }\r\n },\r\n methods:{\r\n getToken(){\r\n let url = this.domain + this.url + this.student_id;\r\n let that = this;\r\n this.axios.get(url).then(\r\n function (response) {\r\n that.token = response.data;\r\n },\r\n function (error) {\r\n console.log(error.data);\r\n }\r\n )\r\n }\r\n },\r\n mounted() {\r\n window.myVue=this;\r\n }\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>"],"mappings":";;EAESA,EAAE,EAAC;AAAO;;uFADfC,mBAAA,CAAI,qCACJA,mBAAA,CAA+B,OAA/BC,UAA+B,EAAAC,gBAAA,CAAbC,KAAA,CAAAC,KAAK,kB,0BAAQJ,mBAAA,CAAI,qCACnCA,mBAAA,CAAsE;IAA/DK,IAAI,EAAC,QAAQ;IAACN,EAAE,EAAC,UAAU;IAAEO,OAAK,EAAAC,MAAA,QAAAA,MAAA,UAAAC,IAAA,KAAEC,QAAA,CAAAC,QAAA,IAAAD,QAAA,CAAAC,QAAA,IAAAF,IAAA,CAAQ;IAAEG,KAAK,EAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}