Commit 3992be68 authored by lipengcheng 's avatar lipengcheng

一些优化

parent 0f5885b4
...@@ -24,6 +24,17 @@ module.exports = { ...@@ -24,6 +24,17 @@ module.exports = {
* "error" 或 2 - 开启规则,使用错误级别的错误:error (当被触发的时候,程序会退出) * "error" 或 2 - 开启规则,使用错误级别的错误:error (当被触发的时候,程序会退出)
*/ */
rules: { rules: {
// 会报各种奇怪的错误 如:error: Delete ⏎ (prettier/prettier) at src/pages/xxx 等;
// 这是因为prettier配置和编辑器prettier配置冲突导致的 在下面配置覆盖掉就可以了
// "prettier/prettier": [
// "error",
// {
// "singleQuote": true,
// "trailingComma": "none",
// "bracketSpacing": true,
// "jsxBracketSameLine": true
// }
// ],
// 是否开启prettier校验,默认开启.可选 warn / error / off // 是否开启prettier校验,默认开启.可选 warn / error / off
// "prettier/prettier": "warn", // "prettier/prettier": "warn",
// "no-console": process.env.NODE_ENV === "production" ? "warn" : "off", // "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
......
...@@ -5,7 +5,10 @@ ...@@ -5,7 +5,10 @@
当前的宝 当前的宝
</div> </div>
<tip-panel></tip-panel> <tip-panel></tip-panel>
<div class="show-modal" @click="showModal"> <div
class="show-modal"
@click="showModal"
>
show-modal show-modal
</div> </div>
</div> </div>
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
<common-header></common-header> <common-header></common-header>
<body class="body-container"> <body class="body-container">
<side-nav></side-nav> <side-nav></side-nav>
<router-view style="flex:1;border: 1px solid #666;"> </router-view> <router-view style="flex:1;border: 1px solid #666;">
</router-view>
<right-panel></right-panel> <right-panel></right-panel>
</body> </body>
</div> </div>
......
...@@ -11,7 +11,10 @@ ...@@ -11,7 +11,10 @@
aaa="dfsdfsfsdfddfsdfsfsdfdsfsddfdsf" aaa="dfsdfsfsdfddfsdfsfsdfdsfsddfdsf"
/> />
<videoPlayer aaa="dfasfsdffdsdfsdsdfffdsfdfdsf"></videoPlayer> <videoPlayer
aaa="dfasfsdffdsdfsdsdfffdsfdfdsf"
bb="dfasfsdffdsdfsdsdfffdsfdfdsf"
></videoPlayer>
</div> </div>
</template> </template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment