修复样式 更改接口
This commit is contained in:
+6
-2
@@ -1,5 +1,6 @@
|
||||
import api from '@/api/api'
|
||||
import isURL from '@/utils/validate'
|
||||
import { re } from 'mathjs'
|
||||
import XLSX from 'xlsx'
|
||||
|
||||
export function timeFix() {
|
||||
@@ -90,9 +91,9 @@ function generateChildRouters (data) {
|
||||
let componentPath = "";
|
||||
item.route = "1";
|
||||
if(item.component.indexOf("layouts")>=0){
|
||||
componentPath = () => import('@/components'+item.component);
|
||||
componentPath = () => Promise.resolve(require('@/components'+item.component).default);
|
||||
} else {
|
||||
componentPath = () => import('@/views'+item.component);
|
||||
componentPath = () => Promise.resolve(require('@/views'+item.component).default)
|
||||
}
|
||||
// eslint-disable-next-line
|
||||
let URL = (item.url|| '').replace(/{{([^}}]+)?}}/g, (s1, s2) => eval(s2)) // URL支持{{ window.xxx }}占位符变量
|
||||
@@ -447,6 +448,9 @@ export function replaceAll(text, checker, replacer) {
|
||||
* @returns {string}
|
||||
*/
|
||||
export function getMpListShort(thisRows, checker, replacer) {
|
||||
if (!thisRows){
|
||||
return "";
|
||||
}
|
||||
let mPropertyListShort = ''
|
||||
let nativeNameStr = ''
|
||||
for (let i = 0; i < thisRows.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user