mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-12 21:53:48 +08:00
v1.0.8
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Modal } from 'iview';
|
||||
import { Modal } from 'view-design';
|
||||
|
||||
const beforeClose = {
|
||||
before_close_normal: resolve => {
|
||||
|
||||
@@ -2,7 +2,7 @@ import Vue from 'vue';
|
||||
import Router from 'vue-router';
|
||||
import { routers } from './routers';
|
||||
import store from '@/store';
|
||||
import iView from 'iview';
|
||||
import ViewUI from 'view-design';
|
||||
import cookie from '@/lib/cookie';
|
||||
import { localRead } from '@/lib/local';
|
||||
import { setTitle } from '@/lib/menu-func';
|
||||
@@ -51,7 +51,7 @@ Router.prototype.closeCurrentPageAndPush = function (pushParam) {
|
||||
};
|
||||
let storeSelf = store;
|
||||
router.beforeEach((to, from, next) => {
|
||||
iView.LoadingBar.start();
|
||||
ViewUI.LoadingBar.start();
|
||||
const token = cookie.getToken();
|
||||
if (!token && to.name !== LOGIN_PAGE_NAME) {
|
||||
// 未登录且要跳转的页面不是登录页
|
||||
@@ -68,7 +68,7 @@ router.beforeEach((to, from, next) => {
|
||||
name: homeName
|
||||
});
|
||||
setTitle(to, router.app);
|
||||
iView.LoadingBar.finish();
|
||||
ViewUI.LoadingBar.finish();
|
||||
window.scrollTo(0, 0);
|
||||
} else {
|
||||
// 特殊页面直接放行
|
||||
@@ -98,7 +98,7 @@ router.beforeEach((to, from, next) => {
|
||||
|
||||
router.afterEach(to => {
|
||||
setTitle(to, router.app);
|
||||
iView.LoadingBar.finish();
|
||||
ViewUI.LoadingBar.finish();
|
||||
window.scrollTo(0, 0);
|
||||
});
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import { file } from './module/file';
|
||||
|
||||
/**
|
||||
*
|
||||
* iview-admin中meta除了原生参数外可配置的参数:
|
||||
* meta除了原生参数外可配置的参数:
|
||||
* meta: {
|
||||
* title: { String|Number|Function }
|
||||
* 显示在侧边栏、面包屑和标签栏的文字
|
||||
|
||||
Reference in New Issue
Block a user