|
@@ -6,14 +6,14 @@ layui.use(["layer", "form", "upload"], function(){
|
|
|
console.log(localStorage.getItem("token"))
|
|
|
if(localStorage.getItem("token") == null){
|
|
|
layer.msg("请先登录", {icon: 2}, function (){
|
|
|
- window.location.href="http://192.168.0.115:9620/page/Login";
|
|
|
+ window.location.href="/page/Login";
|
|
|
})
|
|
|
}
|
|
|
//注销 退出
|
|
|
$(".head_portrait").on("click", (e) => {
|
|
|
localStorage.clear(); //清空缓存
|
|
|
conn.close();
|
|
|
- window.location.href="http://192.168.0.115:9620/page/Login";
|
|
|
+ window.location.href="/page/Login";
|
|
|
});
|
|
|
//禁用鼠标右击
|
|
|
$(".el-scrollbar__view").bind("contextmenu", (e) => {
|