常见问题
接口访问无响应
目前已知两种情况
- 使用了
nginx代理,加一条配置proxy_buffering off;解决 - 警告信息:Creation of SecureRandom instance for session ID generation using [SHA1PRNG] 解决办法:
打开JAVA_HOME/jre/lib/security/java.security这个文件,找到下面的内容:
securerandom.source=file:/dev/urandom
替换成
securerandom.source=file:/dev/./urandom动态组件组件名和ref名不能一样
控制台警告信息:Invalid vnode type when creating vnode: undefined.
错误示例:
template
<user-form ref="userForm" />正确示例:
template
<user-form ref="userFormRef" />[Vue warn]: Component inside <Transition> renders non-element root node that cannot be animated.
出现这样的警告是因为<template>里存在多个根节点 错误示例:
template
<template>
<div>1</div>
<div>2</div>
</template>正确示例:
template
<template>
<div>
<div>1</div>
<div>2</div>
</div>
</template>使用mb-table表格不显示?
template
<div>
<mb-table v-bind="tableOptions" />
</div>答:mb-table的父级标签或者本身,需要设置高度才可以。mb-table的高度可以根据父级标签高度自动填满。