🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

if-admin-layout

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

if-admin-layout - npm Package Compare versions

Comparing version
1.0.10
to
1.0.11
+1
-1
package.json
{
"name": "if-admin-layout",
"version": "1.0.10",
"version": "1.0.11",
"description": "基于Element-plus的侧边栏组件",

@@ -5,0 +5,0 @@ "main": "./src/layout/index.js",

import { IfLayout as Layout, IfKeepAlive, IfMicroApp } from './components'
import IfLayoutConfigStore from './store'
import { inject } from 'vue'
import { StoreName } from './hooks';
import { StoreName, getRoutes } from './hooks';
import createPersistedState from 'vuex-persistedstate'

@@ -84,4 +84,8 @@

const { store } = this.config;
if(routes) {
store.commit(StoreName + '/setRoutes', routes)
} else {
routes = getRoutes()['routes']
}
this.updateMicroComponent(routes);
routes && store.commit(StoreName + '/setRoutes', routes)
return this.createRouter(routes, router);

@@ -88,0 +92,0 @@ }