refactor(rest-api):抽取请求地址

This commit is contained in:
zhengxinonly
2021-07-27 00:12:06 +08:00
parent a35d443fb6
commit b26237e24b
500 changed files with 121 additions and 115 deletions
@@ -0,0 +1,19 @@
layui.define(['jquery', 'element'], function(exports) {
"use strict";
var MOD_NAME = 'context',
$ = layui.jquery,
element = layui.element;
var context = new function() {
this.put = function(key,value){
localStorage.setItem(key,value);
}
this.get = function(key){
return localStorage.getItem(key);
}
}
exports(MOD_NAME, context);
});