Commit caad7401 authored by wangxuelai's avatar wangxuelai

'菜单出不来添加'

parent 2532f05d
......@@ -44,12 +44,12 @@ export default {
},
subscriptions: {
setup({ dispatch, history }) {
dispatch({
type: 'permissionget',
payload: {
history,
},
});
// dispatch({
// type: 'permissionget',
// payload: {
// history,
// },
// });
window.addEventListener('resize', (e) => { // 这里表示当鼠标点击时就会触发里面的dispatch命令,这里的save就是reducers中的方法名
let screenIsBig = true;
if (document.body.clientWidth > 768) {
......@@ -1406,6 +1406,7 @@ export default {
* setmainMenu({ payload }, { put, select, call }) {
const { userPermission } = yield select(state => state.webapp);
const { menus } = JSON.parse(JSON.stringify(menuConfig));
console.log(menus, 'menus');
if (LocalStorage.getItem('role') == 5) {
if (menus.find(ele => ele.id == 30)) {
menus.splice(menus.findIndex(ele => ele.id == 30), 1);
......
......@@ -859,7 +859,6 @@
"@videojs/http-streaming@1.10.6":
version "1.10.6"
resolved "https://registry.npm.taobao.org/@videojs/http-streaming/download/@videojs/http-streaming-1.10.6.tgz#a9119b1828b354c5cc17b42ea051cc7bcce2dca0"
integrity sha1-qRGbGCizVMXMF7QuoFHMe8zi3KA=
dependencies:
aes-decrypter "3.0.0"
global "^4.3.0"
......@@ -1064,7 +1063,6 @@ adler-32@~1.2.0:
aes-decrypter@3.0.0:
version "3.0.0"
resolved "https://registry.npm.taobao.org/aes-decrypter/download/aes-decrypter-3.0.0.tgz#7848a1c145b9fdbf57ae3e2b5b1bc7cf0644a8fb"
integrity sha1-eEihwUW5/b9Xrj4rWxvHzwZEqPs=
dependencies:
commander "^2.9.0"
global "^4.3.2"
......@@ -4624,12 +4622,11 @@ global-prefix@^3.0.0:
global@4.3.2, global@~4.3.0:
version "4.3.2"
resolved "https://registry.npm.taobao.org/global/download/global-4.3.2.tgz#e76989268a6c74c38908b1305b10fc0e394e9d0f"
integrity sha1-52mJJopsdMOJCLEwWxD8DjlOnQ8=
dependencies:
min-document "^2.19.0"
process "~0.5.1"
global@^4.3.0, global@^4.3.1, global@^4.3.2:
global@^4.3.0, global@^4.3.1, global@^4.3.2, global@^4.4.0:
version "4.4.0"
resolved "https://registry.yarnpkg.com/global/-/global-4.4.0.tgz#3e7b105179006a323ed71aafca3e9c57a5cc6406"
dependencies:
......@@ -5046,7 +5043,6 @@ indexes-of@^1.0.1:
individual@^2.0.0:
version "2.0.0"
resolved "https://registry.npm.taobao.org/individual/download/individual-2.0.0.tgz#833b097dad23294e76117a98fb38e0d9ad61bb97"
integrity sha1-gzsJfa0jKU52EXqY+zjg2a1hu5c=
infer-owner@^1.0.3, infer-owner@^1.0.4:
version "1.0.4"
......@@ -5261,7 +5257,6 @@ is-fullwidth-code-point@^3.0.0:
is-function@^1.0.1:
version "1.0.1"
resolved "https://registry.npm.taobao.org/is-function/download/is-function-1.0.1.tgz#12cfb98b65b57dd3d193a3121f5f6e2f437602b5"
integrity sha1-Es+5i2W1fdPRk6MSH19uL0N2ArU=
is-glob@^3.1.0:
version "3.1.0"
......@@ -5517,7 +5512,6 @@ jsx-loader@^0.13.2:
keycode@^2.2.0:
version "2.2.0"
resolved "https://registry.npm.taobao.org/keycode/download/keycode-2.2.0.tgz#3d0af56dc7b8b8e5cba8d0a97f107204eec22b04"
integrity sha1-PQr1bce4uOXLqNCpfxByBO7CKwQ=
killable@^1.0.1:
version "1.0.1"
......@@ -5709,7 +5703,6 @@ lru-cache@^5.1.1:
m3u8-parser@4.4.0:
version "4.4.0"
resolved "https://registry.npm.taobao.org/m3u8-parser/download/m3u8-parser-4.4.0.tgz#adf606c0af6d97f6750095a42006c2ae03dde177"
integrity sha1-rfYGwK9tl/Z1AJWkIAbCrgPd4Xc=
dependencies:
global "^4.3.2"
......@@ -5978,7 +5971,6 @@ move-concurrently@^1.0.1:
mpd-parser@0.8.1:
version "0.8.1"
resolved "https://registry.npm.taobao.org/mpd-parser/download/mpd-parser-0.8.1.tgz#db299dbec337999fbbbace989d227c7b03dc8ea7"
integrity sha1-2ymdvsM3mZ+7us6YnSJ8ewPcjqc=
dependencies:
global "^4.3.2"
url-toolkit "^2.1.1"
......@@ -6021,7 +6013,6 @@ mute-stream@0.0.8:
mux.js@5.2.1:
version "5.2.1"
resolved "https://registry.npm.taobao.org/mux.js/download/mux.js-5.2.1.tgz#6698761fc88da5acecea0758ac25f11d3a08bee8"
integrity sha1-Zph2H8iNpazs6gdYrCXxHToIvug=
mz-modules@^2.1.0:
version "2.1.0"
......@@ -6574,7 +6565,6 @@ parse-asn1@^5.0.0:
parse-headers@^2.0.0:
version "2.0.3"
resolved "https://registry.npm.taobao.org/parse-headers/download/parse-headers-2.0.3.tgz#5e8e7512383d140ba02f0c7aa9f49b4399c92515"
integrity sha1-Xo51Ejg9FAugLwx6qfSbQ5nJJRU=
parse-json@^2.2.0:
version "2.2.0"
......@@ -6704,7 +6694,6 @@ pinkie@^2.0.0:
pkcs7@^1.0.2:
version "1.0.2"
resolved "https://registry.npm.taobao.org/pkcs7/download/pkcs7-1.0.2.tgz#b6dba527528c2942bfc122ce2dafcdb5e59074e7"
integrity sha1-ttulJ1KMKUK/wSLOLa/NteWQdOc=
pkg-dir@^1.0.0:
version "1.0.0"
......@@ -6853,7 +6842,6 @@ process@^0.11.10:
process@~0.5.1:
version "0.5.2"
resolved "https://registry.npm.taobao.org/process/download/process-0.5.2.tgz#1638d8a8e34c2f440a91db95ab9aeb677fc185cf"
integrity sha1-FjjYqONML0QKkduVq5rrZ3/Bhc8=
progress@^2.0.0:
version "2.0.3"
......@@ -8029,7 +8017,6 @@ run-queue@^1.0.0, run-queue@^1.0.3:
rust-result@^1.0.0:
version "1.0.0"
resolved "https://registry.npm.taobao.org/rust-result/download/rust-result-1.0.0.tgz#34c75b2e6dc39fe5875e5bdec85b5e0f91536f72"
integrity sha1-NMdbLm3Dn+WHXlveyFteD5FTb3I=
dependencies:
individual "^2.0.0"
......@@ -8060,7 +8047,6 @@ safe-buffer@>=5.1.0, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1,
safe-json-parse@4.0.0:
version "4.0.0"
resolved "https://registry.npm.taobao.org/safe-json-parse/download/safe-json-parse-4.0.0.tgz#7c0f578cfccd12d33a71c0e05413e2eca171eaac"
integrity sha1-fA9XjPzNEtM6ccDgVBPi7KFx6qw=
dependencies:
rust-result "^1.0.0"
......@@ -9020,7 +9006,6 @@ url-parse@^1.4.3:
url-toolkit@^2.1.1, url-toolkit@^2.1.3:
version "2.1.6"
resolved "https://registry.npm.taobao.org/url-toolkit/download/url-toolkit-2.1.6.tgz#6d03246499e519aad224c44044a4ae20544154f2"
integrity sha1-bQMkZJnlGarSJMRARKSuIFRBVPI=
url@^0.11.0:
version "0.11.0"
......@@ -9153,10 +9138,9 @@ video-react@^0.14.1:
prop-types "^15.7.2"
redux "^4.0.1"
"video.js@^6.8.0 || ^7.0.0", video.js@^7.6.6:
"video.js@^6 || ^7", "video.js@^6.8.0 || ^7.0.0", video.js@^7.6.6:
version "7.6.6"
resolved "https://registry.npm.taobao.org/video.js/download/video.js-7.6.6.tgz#e7c9163d53f9b0e05ccb5ac0f79d02fa49b4d3ac"
integrity sha1-58kWPVP5sOBcy1rA950C+km006w=
dependencies:
"@babel/runtime" "^7.4.5"
"@videojs/http-streaming" "1.10.6"
......@@ -9170,12 +9154,24 @@ video-react@^0.14.1:
videojs-font@3.2.0:
version "3.2.0"
resolved "https://registry.npm.taobao.org/videojs-font/download/videojs-font-3.2.0.tgz#212c9d3f4e4ec3fa7345167d64316add35e92232"
integrity sha1-ISydP05Ow/pzRRZ9ZDFq3TXpIjI=
videojs-playlist-ui@^3.7.0:
version "3.7.0"
resolved "https://registry.yarnpkg.com/videojs-playlist-ui/-/videojs-playlist-ui-3.7.0.tgz#9e4e42a931dc968aefb8de3fa7dde9549b88c549"
dependencies:
global "^4.4.0"
video.js "^6 || ^7"
videojs-playlist@^4.3.1:
version "4.3.1"
resolved "https://registry.yarnpkg.com/videojs-playlist/-/videojs-playlist-4.3.1.tgz#b5621fa00e133138f79c4127dadf2399d94719ac"
dependencies:
global "^4.3.2"
video.js "^6 || ^7"
videojs-vtt.js@^0.14.1:
version "0.14.1"
resolved "https://registry.npm.taobao.org/videojs-vtt.js/download/videojs-vtt.js-0.14.1.tgz#da583eb1fc9c81c826a9432b706040e8dea49911"
integrity sha1-2lg+sfycgcgmqUMrcGBA6N6kmRE=
dependencies:
global "^4.3.1"
......@@ -9445,7 +9441,6 @@ ws@^6.0.0, ws@^6.2.1:
xhr@2.4.0:
version "2.4.0"
resolved "https://registry.npm.taobao.org/xhr/download/xhr-2.4.0.tgz#e16e66a45f869861eeefab416d5eff722dc40993"
integrity sha1-4W5mpF+GmGHu76tBbV7/ci3ECZM=
dependencies:
global "~4.3.0"
is-function "^1.0.1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment