Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mould-vuecli3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lhfe
mould-vuecli3
Commits
3992be68
Commit
3992be68
authored
Aug 29, 2020
by
lipengcheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一些优化
parent
0f5885b4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
3 deletions
+21
-3
.eslintrc.js
.eslintrc.js
+11
-0
index.vue
src/components/header/index.vue
+4
-1
default.vue
src/components/layout/default.vue
+2
-1
home.vue
src/views/home.vue
+4
-1
No files found.
.eslintrc.js
View file @
3992be68
...
...
@@ -24,6 +24,17 @@ module.exports = {
* "error" 或 2 - 开启规则,使用错误级别的错误:error (当被触发的时候,程序会退出)
*/
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/prettier": "warn",
// "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
...
...
src/components/header/index.vue
View file @
3992be68
...
...
@@ -5,7 +5,10 @@
当前的宝
</div>
<tip-panel></tip-panel>
<div
class=
"show-modal"
@
click=
"showModal"
>
<div
class=
"show-modal"
@
click=
"showModal"
>
show-modal
</div>
</div>
...
...
src/components/layout/default.vue
View file @
3992be68
...
...
@@ -3,7 +3,8 @@
<common-header></common-header>
<body
class=
"body-container"
>
<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>
</body>
</div>
...
...
src/views/home.vue
View file @
3992be68
...
...
@@ -11,7 +11,10 @@
aaa=
"dfsdfsfsdfddfsdfsfsdfdsfsddfdsf"
/>
<videoPlayer
aaa=
"dfasfsdffdsdfsdsdfffdsfdfdsf"
></videoPlayer>
<videoPlayer
aaa=
"dfasfsdffdsdfsdsdfffdsfdfdsf"
bb=
"dfasfsdffdsdfsdsdfffdsfdfdsf"
></videoPlayer>
</div>
</
template
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment