提交 fe094eb0 编写于 作者: RedPig97's avatar RedPig97

fix:修复报错

上级 7323ce78
...@@ -159,7 +159,7 @@ export default class AppMpicker extends Vue { ...@@ -159,7 +159,7 @@ export default class AppMpicker extends Vue {
} }
}); });
} catch (error) { } catch (error) {
if(error.name === 'SyntaxError'){ if((error as any).name === 'SyntaxError'){
let srfkeys:any = newVal.split(','); let srfkeys:any = newVal.split(',');
let srfmajortexts:any = null; let srfmajortexts:any = null;
if(this.valueitem && this.activeData[this.valueitem]){ if(this.valueitem && this.activeData[this.valueitem]){
......
...@@ -9,14 +9,6 @@ import GridViewEngine from './grid-view-engine'; ...@@ -9,14 +9,6 @@ import GridViewEngine from './grid-view-engine';
*/ */
export default class GridView8Engine extends GridViewEngine { export default class GridView8Engine extends GridViewEngine {
/**
* 表格部件
*
* @type {*}
* @memberof GridView8Engine
*/
protected grid: any;
/** /**
* 表格部件 * 表格部件
* *
......
...@@ -76,7 +76,7 @@ export class ViewTool { ...@@ -76,7 +76,7 @@ export class ViewTool {
* @memberof ViewTool * @memberof ViewTool
*/ */
public static getIndexRoutePath(route: Route): string { public static getIndexRoutePath(route: Route): string {
const { parameters: _parameters }: { parameters: any[] } = route.meta; const { parameters: _parameters }: { parameters: any[] } = route.meta as any;
const { pathName: _pathName, parameterName: _parameterName }: { pathName: string, parameterName: string } = _parameters[0]; const { pathName: _pathName, parameterName: _parameterName }: { pathName: string, parameterName: string } = _parameters[0];
const param = route.params[_parameterName]; const param = route.params[_parameterName];
if (param && !Object.is(param, '')) { if (param && !Object.is(param, '')) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册