1
This commit is contained in:
parent
c93738c3c8
commit
19a660067e
2
web/src/x.min.js
vendored
2
web/src/x.min.js
vendored
@ -6141,7 +6141,7 @@ var X = window.X || {
|
|||||||
$(document).off('click','.layui-left-dd').on('click','.layui-left-dd',function(){
|
$(document).off('click','.layui-left-dd').on('click','.layui-left-dd',function(){
|
||||||
var authority = $(this).attr("data-authority");
|
var authority = $(this).attr("data-authority");
|
||||||
X.DATA.authority = authority;
|
X.DATA.authority = authority;
|
||||||
if(authority == "rw" && X.DATA['userinfo']['userid'] == $(this).attr("data-userid")){
|
if(authority == "rw" || X.DATA['userinfo']['userid'] == $(this).attr("data-userid")){
|
||||||
$(".baobiao").show();
|
$(".baobiao").show();
|
||||||
}else{
|
}else{
|
||||||
$(".baobiao").hide();
|
$(".baobiao").hide();
|
||||||
|
@ -142,8 +142,8 @@ var X = window.X || {
|
|||||||
// var ipurl = "http://10.0.0.94:7899/api/v1/";
|
// var ipurl = "http://10.0.0.94:7899/api/v1/";
|
||||||
// 线上
|
// 线上
|
||||||
var ipurl = "http://139.159.159.3:9865/api/v1/";
|
var ipurl = "http://139.159.159.3:9865/api/v1/";
|
||||||
//线上测试
|
//线上测试
|
||||||
// var ipurl = "http://139.159.159.3:7889/api/v1/";
|
// var ipurl = "http://139.159.159.3:7889/api/v1/";
|
||||||
|
|
||||||
//设置或读取登录缓存,需要保存到localStorage,防止刷新时候登录数据丢失
|
//设置或读取登录缓存,需要保存到localStorage,防止刷新时候登录数据丢失
|
||||||
X.loginCache = function(data){
|
X.loginCache = function(data){
|
||||||
|
@ -94,7 +94,7 @@
|
|||||||
$(document).off('click','.layui-left-dd').on('click','.layui-left-dd',function(){
|
$(document).off('click','.layui-left-dd').on('click','.layui-left-dd',function(){
|
||||||
var authority = $(this).attr("data-authority");
|
var authority = $(this).attr("data-authority");
|
||||||
X.DATA.authority = authority;
|
X.DATA.authority = authority;
|
||||||
if(authority == "rw" && X.DATA['userinfo']['userid'] == $(this).attr("data-userid")){
|
if(authority == "rw" || X.DATA['userinfo']['userid'] == $(this).attr("data-userid")){
|
||||||
$(".baobiao").show();
|
$(".baobiao").show();
|
||||||
}else{
|
}else{
|
||||||
$(".baobiao").hide();
|
$(".baobiao").hide();
|
||||||
|
Loading…
Reference in New Issue
Block a user