Merge remote-tracking branch 'origin/fix/master' into feature/1.8.0-uniapp

# Conflicts:
#	yudao-ui-admin/src/components/ImageUpload/index.vue
pull/2/head
JeromeSoar 2022-04-25 11:41:45 +08:00
commit f7958dcf40
4 changed files with 13 additions and 7 deletions

View File

@ -390,7 +390,7 @@ export default {
this.exportLoading = true; this.exportLoading = true;
return export${simpleClassName}Excel(params); return export${simpleClassName}Excel(params);
}).then(response => { }).then(response => {
this.$download.excel(response, '${table.classComment}.xls'); this.$download.excel(response, "${table.classComment}.xls");
this.exportLoading = false; this.exportLoading = false;
}).catch(() => {}); }).catch(() => {});
} }

View File

@ -1,5 +1,8 @@
<template> <template>
<div>
<doc-alert title="接口文档" url="https://doc.iocoder.cn/api-doc/" />
<i-frame :src="url" /> <i-frame :src="url" />
</div>
</template> </template>
<script> <script>
import iFrame from "@/components/iFrame/index"; import iFrame from "@/components/iFrame/index";

View File

@ -1,6 +1,8 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<doc-alert title="功能权限" url="https://doc.iocoder.cn/resource-permission" /> <doc-alert title="功能权限" url="https://doc.iocoder.cn/resource-permission" />
<doc-alert title="菜单路由" url="https://doc.iocoder.cn/vue2/route/" />
<!-- 搜索工作栏 -->
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch">
<el-form-item label="菜单名称" prop="name"> <el-form-item label="菜单名称" prop="name">
<el-input v-model="queryParams.name" placeholder="请输入菜单名称" clearable @keyup.enter.native="handleQuery"/> <el-input v-model="queryParams.name" placeholder="请输入菜单名称" clearable @keyup.enter.native="handleQuery"/>
@ -187,6 +189,7 @@ import IconSelect from "@/components/IconSelect";
import { SystemMenuTypeEnum, CommonStatusEnum } from '@/utils/constants' import { SystemMenuTypeEnum, CommonStatusEnum } from '@/utils/constants'
import { getDictDatas, DICT_TYPE } from '@/utils/dict' import { getDictDatas, DICT_TYPE } from '@/utils/dict'
import {isExternal} from "@/utils/validate";
export default { export default {
name: "Menu", name: "Menu",
@ -344,7 +347,7 @@ export default {
|| this.form.type === SystemMenuTypeEnum.MENU) { || this.form.type === SystemMenuTypeEnum.MENU) {
// //
const path = this.form.path const path = this.form.path
if (path.indexOf('http://') === -1 || path.indexOf('https://') === -1) { if (!isExternal(path)) {
// path / // path /
if (this.form.parentId === 0 && path.charAt(0) !== '/') { if (this.form.parentId === 0 && path.charAt(0) !== '/') {
this.$modal.msgSuccess('前端必须以 / 开头') this.$modal.msgSuccess('前端必须以 / 开头')