提交 f1e40ce8 authored 作者: 龙菲's avatar 龙菲

删除冗余代码

上级 0a56a4f4
...@@ -25,17 +25,17 @@ export function debounce(func, wait, immediate = true) { ...@@ -25,17 +25,17 @@ export function debounce(func, wait, immediate = true) {
// 获取完整的url,根据环境进行配置 // 获取完整的url,根据环境进行配置
export function getFullUrl(url) { export function getFullUrl(url) {
if (url) { let fullUrl = ''
let fullUrl = '' if (url && url.indexOf('http') != -1 && url.indexOf('files') != -1) {
let urlArr = url.split('files') let urlArr = url.split('files')
fullUrl = '/files' + urlArr[1] fullUrl = '/files' + urlArr[1]
return fullUrl
} else { } else {
return '' fullUrl = url
} }
return fullUrl
} }
/** /**
* 预览文件 * 预览文件
* @param href 预览地址 * @param href 预览地址
......
...@@ -138,7 +138,6 @@ export default { ...@@ -138,7 +138,6 @@ export default {
children: "children", children: "children",
checkStrictly: true, //单选选择任意一级选项 checkStrictly: true, //单选选择任意一级选项
}, },
culturalRelicYears: [],
onlyShow3d: false, onlyShow3d: false,
keyword: "", keyword: "",
type: "", type: "",
...@@ -151,10 +150,6 @@ export default { ...@@ -151,10 +150,6 @@ export default {
}, },
async created() { async created() {
await this.$store.dispatch("dict/getDictList", ["display_type"]); await this.$store.dispatch("dict/getDictList", ["display_type"]);
let res = await this.$store.dispatch("dict/getDictTree", [
"culturalRelicYears",
]);
this.culturalRelicYears = res.culturalRelicYears;
}, },
mounted() { mounted() {
this.loadData(); this.loadData();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论