摘自:https://www.jianshu.com/p/4f2566b67989 以后可能用的上 通常我们在vue项目中都是前端配置好路由的,但在一些项目中我们可能会遇到权限控制,这样我们就涉及到动态路由的设置了。 动态路由设置一般有两种: (1)、简单的角色路由设置:比如只涉及到管理员和普通用户 ...
分类:
其他好文 时间:
2020-11-13 12:11:15
阅读次数:
6
html代码 <a class="btn btn-primary fa fa-export" href="javascript:void(0);" onclick="expExcel()"><span>导出excel</span></a> js代码 function expExcel() { var ...
分类:
其他好文 时间:
2020-11-10 10:53:41
阅读次数:
4
import React, { Component } from "react"; import { View, Text } from "@tarojs/components"; export default class Index extends Component { constructor( ...
分类:
其他好文 时间:
2020-11-07 15:33:04
阅读次数:
23
前言:Ubuntu下在使用搜狗拼音, 之前能正常使用, 但是最近几天输入法开始抽风, 无法输出中文,之后 打中文的速度一下子快起来了。但是当我打开 idea, phpstorm, sublime 这些软件之后傻眼了,发现输入不了中文,虽然习惯了coding的时候写英文注释,但是有些复杂的逻辑还是需要 ...
分类:
系统相关 时间:
2020-11-06 02:35:40
阅读次数:
25
<template> <router-view v-if="isRouterAlive"/> </template> <script> export default { data () { return { isRouterAlive: true } }, methods: { reload () ...
分类:
其他好文 时间:
2020-11-06 02:18:16
阅读次数:
21
--查看当前数据库的字符集编码select userenv('language') from dual;1、head -5 a.dmp 可以看到dmp文件如果不兼容,你可以用sed修改版本号sed -i 's/11.02.01/10.02.01/g' a.dmp 2、字符集的问题版,在导出数据的时候 ...
分类:
数据库 时间:
2020-11-01 20:44:18
阅读次数:
24
我发现有些人习惯在 /etc/profile 文件里面配置环境变量,在这里配置挺不好的。 # /etc/profile: system-wide .profile file for the Bourne shell (sh(1)) # and Bourne compatible shells (ba ...
分类:
系统相关 时间:
2020-11-01 10:17:26
阅读次数:
24
下载 下载地址:http://maven.apache.org/download.cgi。下载maven文件并解压。 配置环境变量 编辑.bash_profile文件: vim ~/.bash_profile 配置maven文件地址: export M2_HOME=/Users/xxx/Docume ...
分类:
系统相关 时间:
2020-10-31 02:38:28
阅读次数:
30
图书管理前端页面 1.图书管理页面 1.1 http/apis.js 添加后端请求路由 import { get, post, put, del } from './index'// 书籍管理接口export const getBookList = (params, headers) => get( ...
分类:
其他好文 时间:
2020-10-30 12:30:39
阅读次数:
19