travel/admin/node_modules/.cache/babel-loader/e8cf1f69b88e5f2c06d598f354d...

1 line
2.0 KiB
JSON

{"remainingRequest":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\babel-loader\\lib\\index.js!D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\eslint-loader\\index.js??ref--13-0!D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\utils\\auth.js","dependencies":[{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\utils\\auth.js","mtime":1718070786034},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\babel.config.js","mtime":1718070785981},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1718764957200},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\babel-loader\\lib\\index.js","mtime":1718764959024},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\eslint-loader\\index.js","mtime":1718764957746}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IENvb2tpZXMgZnJvbSAnanMtY29va2llJzsKdmFyIFRva2VuS2V5ID0gJ0FkbWluVG9rZW4nOwpleHBvcnQgZnVuY3Rpb24gZ2V0VG9rZW4oKSB7CiAgcmV0dXJuIENvb2tpZXMuZ2V0KFRva2VuS2V5KTsKfQpleHBvcnQgZnVuY3Rpb24gc2V0VG9rZW4odG9rZW4pIHsKICByZXR1cm4gQ29va2llcy5zZXQoVG9rZW5LZXksIHRva2VuKTsKfQpleHBvcnQgZnVuY3Rpb24gcmVtb3ZlVG9rZW4oKSB7CiAgcmV0dXJuIENvb2tpZXMucmVtb3ZlKFRva2VuS2V5KTsKfQ=="},{"version":3,"names":["Cookies","TokenKey","getToken","get","setToken","token","set","removeToken","remove"],"sources":["D:/phpstudy_pro/WWW/travel/admin/src/utils/auth.js"],"sourcesContent":["import Cookies from 'js-cookie'\r\n\r\nconst TokenKey = 'AdminToken'\r\n\r\nexport function getToken() {\r\n return Cookies.get(TokenKey)\r\n}\r\n\r\nexport function setToken(token) {\r\n return Cookies.set(TokenKey, token)\r\n}\r\n\r\nexport function removeToken() {\r\n return Cookies.remove(TokenKey)\r\n}\r\n"],"mappings":"AAAA,OAAOA,OAAO,MAAM,WAAW;AAE/B,IAAMC,QAAQ,GAAG,YAAY;AAE7B,OAAO,SAASC,QAAQA,CAAA,EAAG;EACzB,OAAOF,OAAO,CAACG,GAAG,CAACF,QAAQ,CAAC;AAC9B;AAEA,OAAO,SAASG,QAAQA,CAACC,KAAK,EAAE;EAC9B,OAAOL,OAAO,CAACM,GAAG,CAACL,QAAQ,EAAEI,KAAK,CAAC;AACrC;AAEA,OAAO,SAASE,WAAWA,CAAA,EAAG;EAC5B,OAAOP,OAAO,CAACQ,MAAM,CAACP,QAAQ,CAAC;AACjC","ignoreList":[]}]}