zhongshaofa / layuimini

后台admin前端模板,基于 layui 编写的最简洁、易用的后台框架模板。只需提供一个接口就直接初始化整个框架,无需复杂操作。
http://layuimini.99php.cn
MIT License
4.14k stars 1.15k forks source link

初始化左侧菜单栏,可以选择添加token选项 #49

Open xiaolanii opened 3 years ago

xiaolanii commented 3 years ago

我的项目里面请求都需要携带token,我在初始化的时候添加了这个参数,方便携带token

Aeolus-Lang commented 3 years ago

非常感谢,我是个新手,在自学,刚看完SSM整合想找个前端项目来学习,机缘巧合在Git上发现了你的项目,膜拜一下先。

------------------ 原始邮件 ------------------ 发件人: "zhongshaofa/layuimini" <notifications@github.com>; 发送时间: 2020年10月13日(星期二) 下午2:20 收件人: "zhongshaofa/layuimini"<layuimini@noreply.github.com>; 抄送: "Subscribed"<subscribed@noreply.github.com>; 主题: [zhongshaofa/layuimini] 初始化左侧菜单栏,可以选择添加token选项 (#49)

我的项目里面请求都需要携带token,我在初始化的时候添加了这个参数,方便携带token

You can view, comment on, or merge this pull request online at:

  https://github.com/zhongshaofa/layuimini/pull/49

Commit Summary

初始化左侧菜单栏,可以选择添加token选项

File Changes

 M     index.html     (1)   

 M     js/lay-module/layuimini/miniAdmin.js     (96)   

Patch Links:

https://github.com/zhongshaofa/layuimini/pull/49.patch

https://github.com/zhongshaofa/layuimini/pull/49.diff

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

zhongshaofa commented 3 years ago

不应该这样子去更改,还是无法解决用户的需求,参数应该传的是header头进去的

xiaolanii commented 3 years ago

我是看初始化左侧菜单栏是$.getJSON方法,我把它改成了$.ajax方法。我只添加了Auth属性,其实可以添加更多的参数选项,来满足用户需求