兩個(gè)不同權(quán)限對(duì)應(yīng)兩個(gè)不用頁面前面的http.post服務(wù)已經(jīng)success下面開始是success下面的代碼alert(data.roles[0]);//這是提示權(quán)限if (data.roles[0] = "inpector") {
$window.location.href = "lcdFaultInsert.html";
} else
{
$window.location.href = "faultDeviceInsert.html";
}兩個(gè)不同賬號(hào)登錄在alert那里確實(shí)是不同的權(quán)限,但是頁面跳轉(zhuǎn)卻都是進(jìn)第一個(gè)頁面?請(qǐng)問怎么解決?
為什么頁面跳轉(zhuǎn)不正確?
瀟瀟雨雨
2018-10-18 14:11:28