Commit 15551653 by 肖康

x

parent 6e09d6d3
...@@ -15,7 +15,7 @@ export let NODE_ENVS = "/"; ...@@ -15,7 +15,7 @@ export let NODE_ENVS = "/";
switch (envs) { switch (envs) {
case 'development': case 'development':
//开发环境 //开发环境
NODE_ENVS = 'http://192.168.2.164:8080'; NODE_ENVS = 'http://192.168.2.251:8080';
break; break;
case 'test': case 'test':
//测试环境 //测试环境
......
...@@ -490,7 +490,7 @@ ...@@ -490,7 +490,7 @@
height: 40px; height: 40px;
overflow-y: hidden; overflow-y: hidden;
position: relative; position: relative;
width: calc(100vw - 640px); width: calc(100vw - 660px);
&::-webkit-scrollbar { &::-webkit-scrollbar {
width: 5px; width: 5px;
......
...@@ -1070,7 +1070,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod ...@@ -1070,7 +1070,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.http = exports.NODE_ENVS = void 0;\n\nvar _axios = _interopRequireDefault(__webpack_require__(/*! axios */ \"./node_modules/axios/index.js\"));\n\nvar _qs = _interopRequireDefault(__webpack_require__(/*! qs */ \"./node_modules/qs/lib/index.js\"));\n\nvar _tool = _interopRequireDefault(__webpack_require__(/*! ../tool */ \"./src/tool/index.js\"));\n\n/**\r\n * 封装axios的通用请求\r\n * @param {string} method get\\post\\put\\delete\r\n * @param {string} url 请求的接口URL\r\n * @param {object} param 传的参数,没有则传空对象\r\n */\nconst envs = \"test\";\nlet NODE_ENVS = \"/\";\nexports.NODE_ENVS = NODE_ENVS;\n\nswitch (envs) {\n case 'development':\n //开发环境\n exports.NODE_ENVS = NODE_ENVS = 'http://192.168.2.164:8080';\n break;\n\n case 'test':\n //测试环境\n exports.NODE_ENVS = NODE_ENVS = 'http://cloud.liexindev.net';\n break;\n\n case 'production':\n //线上环境\n exports.NODE_ENVS = NODE_ENVS = '/';\n break;\n}\n\nconst http = (method, url, param, loading) => {\n //axios.defaults.withCredentials = true; // 携带cookie\n //loading 默认加载loading 传1 不加载\n param = param && typeof param === 'object' ? param : {};\n let token = _tool.default.getCookie('token') || '';\n const config = {\n url: `${NODE_ENVS}${url}`,\n method: method,\n transformRequest: [function (param) {\n return _qs.default.stringify(param);\n }],\n loading: loading ? false : true\n }; //param.token=token\n\n if (url != \"/auth/cp\" && url != \"/auth/login\") {\n config.headers = {\n 'Authorization': 'Bearer ' + token\n };\n } // post请求时需要设定Content-Type\n\n\n if (method == 'post' || method == 'POST') {\n config.data = param;\n } else if (method === 'get' || method == 'GET') {\n config.params = param;\n }\n\n return (0, _axios.default)(config);\n};\n\nexports.http = http;\n\n//# sourceURL=webpack:///./src/ajax/index.js?"); eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.http = exports.NODE_ENVS = void 0;\n\nvar _axios = _interopRequireDefault(__webpack_require__(/*! axios */ \"./node_modules/axios/index.js\"));\n\nvar _qs = _interopRequireDefault(__webpack_require__(/*! qs */ \"./node_modules/qs/lib/index.js\"));\n\nvar _tool = _interopRequireDefault(__webpack_require__(/*! ../tool */ \"./src/tool/index.js\"));\n\n/**\r\n * 封装axios的通用请求\r\n * @param {string} method get\\post\\put\\delete\r\n * @param {string} url 请求的接口URL\r\n * @param {object} param 传的参数,没有则传空对象\r\n */\nconst envs = \"test\";\nlet NODE_ENVS = \"/\";\nexports.NODE_ENVS = NODE_ENVS;\n\nswitch (envs) {\n case 'development':\n //开发环境\n exports.NODE_ENVS = NODE_ENVS = 'http://192.168.2.251:8080';\n break;\n\n case 'test':\n //测试环境\n exports.NODE_ENVS = NODE_ENVS = 'http://cloud.liexindev.net';\n break;\n\n case 'production':\n //线上环境\n exports.NODE_ENVS = NODE_ENVS = '/';\n break;\n}\n\nconst http = (method, url, param, loading) => {\n //axios.defaults.withCredentials = true; // 携带cookie\n //loading 默认加载loading 传1 不加载\n param = param && typeof param === 'object' ? param : {};\n let token = _tool.default.getCookie('token') || '';\n const config = {\n url: `${NODE_ENVS}${url}`,\n method: method,\n transformRequest: [function (param) {\n return _qs.default.stringify(param);\n }],\n loading: loading ? false : true\n }; //param.token=token\n\n if (url != \"/auth/cp\" && url != \"/auth/login\") {\n config.headers = {\n 'Authorization': 'Bearer ' + token\n };\n } // post请求时需要设定Content-Type\n\n\n if (method == 'post' || method == 'POST') {\n config.data = param;\n } else if (method === 'get' || method == 'GET') {\n config.params = param;\n }\n\n return (0, _axios.default)(config);\n};\n\nexports.http = http;\n\n//# sourceURL=webpack:///./src/ajax/index.js?");
/***/ }), /***/ }),
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="http://yunxin.liexindev.net/favicon.ico"> <link rel="icon" href="http://yunxin.liexindev.net/favicon.ico">
<title>cloudsystem</title> <title>cloudsystem</title>
<link href="http://yunxin.liexindev.net/js/0.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/1.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/10.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/11.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/12.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/13.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/14.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/15.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/16.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/17.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/18.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/19.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/2.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/20.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/21.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/22.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/23.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/24.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/25.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/26.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/27.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/28.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/3.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/4.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/5.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/6.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/7.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/8.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/9.js" rel="prefetch"><link href="http://yunxin.liexindev.net/app.0a258f8fbfd035501df8.js" rel="preload" as="script"></head> <link href="http://yunxin.liexindev.net/js/0.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/1.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/10.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/11.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/12.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/13.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/14.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/15.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/16.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/17.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/18.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/19.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/2.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/20.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/21.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/22.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/23.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/24.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/25.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/26.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/27.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/28.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/3.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/4.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/5.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/6.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/7.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/8.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/9.js" rel="prefetch"><link href="http://yunxin.liexindev.net/app.d28bf90e1cdb3e9af010.js" rel="preload" as="script"></head>
<body> <body>
<noscript> <noscript>
<strong>网络异常,请稍后加载</strong> <strong>网络异常,请稍后加载</strong>
</noscript> </noscript>
<div id="app"></div> <div id="app"></div>
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
<script type="text/javascript" src="http://yunxin.liexindev.net/app.0a258f8fbfd035501df8.js"></script></body> <script type="text/javascript" src="http://yunxin.liexindev.net/app.d28bf90e1cdb3e9af010.js"></script></body>
</html> </html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment