刘沙
刘沙
代码补全失效
代码补全失效,打日志的时候,provideCompletionItems函数有被触发,但是返回数据后,并没有触发代码补全的提示。想问下有哪些情况是导致代码提示无法显示
 如图,页面初始化后,双击左侧与右侧间的拖拽线,会导致右边栏空白; 经过查找,是因为src\js\component\panel\panel.vue组件中,currentChange没有设置在data中。双击的时候,没有经过move事件,会导致currentChange获取到的值为undefined和null。 解决办法:在data中设置currentChange为0就可以了。 ` currentChange: 0,`
 如图,页面初始化后,双击左侧与右侧间的拖拽线,会导致右边栏空白; 经过查找,是因为src\js\component\panel\panel.vue组件中,currentChange没有设置在data中。双击的时候,没有经过move事件,会导致currentChange获取到的值为undefined和null。 解决办法:在data中设置currentChange为0就可以了。 ` currentChange: 0,`