|
|
@@ -42,7 +42,14 @@
|
|
|
// asideAfter: '<div class="p-2 text-center">菜单后面区域</div>',
|
|
|
// // api: '/pages/site.json'
|
|
|
header,
|
|
|
- api: 'http://172.20.118.83:8051/demomenu'
|
|
|
+ api: {
|
|
|
+ "url": 'http://localhost:8081/page/menu',
|
|
|
+ "dataType":"form",
|
|
|
+ "method":"post",
|
|
|
+ "headers": {
|
|
|
+ "Authorization": 'Bearer ' + getToken()
|
|
|
+ },
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
function normalizeLink(to, location = history.location) {
|
|
|
@@ -182,6 +189,11 @@
|
|
|
});
|
|
|
});
|
|
|
})();
|
|
|
+
|
|
|
+ // 获取登录的token-登录请求不需要登录token
|
|
|
+ function getToken() {
|
|
|
+ return localStorage.getItem("apiToken");
|
|
|
+ }
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|