Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-template-mobile
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
huanglu
vue-template-mobile
Commits
081f3c08
Commit
081f3c08
authored
Jul 13, 2020
by
huanglu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update
parent
c1cdbc3b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
10 deletions
+20
-10
.eslintrc.js
.eslintrc.js
+8
-2
index.js
src/components/error-nofity/index.js
+1
-2
index.vue
src/components/video-item/index.vue
+1
-1
main.js
src/main.js
+2
-1
vue.config.js
vue.config.js
+3
-4
yarn.lock
yarn.lock
+5
-0
No files found.
.eslintrc.js
View file @
081f3c08
...
@@ -18,7 +18,7 @@ module.exports = {
...
@@ -18,7 +18,7 @@ module.exports = {
'comma-style'
:
[
2
,
'last'
],
// 逗号风格,换行时在行首还是行尾
'comma-style'
:
[
2
,
'last'
],
// 逗号风格,换行时在行首还是行尾
quotes
:
[
1
,
'single'
],
quotes
:
[
1
,
'single'
],
eqeqeq
:
2
,
eqeqeq
:
2
,
'indent'
:
[
2
,
2
],
// 强制使用一致的缩进
indent
:
[
2
,
2
],
// 强制使用一致的缩进
'no-var'
:
1
,
'no-var'
:
1
,
'key-spacing'
:
[
2
,
{
beforeColon
:
false
,
afterColon
:
true
}],
// 对象字面量中冒号的前后空格
'key-spacing'
:
[
2
,
{
beforeColon
:
false
,
afterColon
:
true
}],
// 对象字面量中冒号的前后空格
semi
:
0
,
semi
:
0
,
...
@@ -29,6 +29,12 @@ module.exports = {
...
@@ -29,6 +29,12 @@ module.exports = {
'no-unused-vars'
:
1
,
'no-unused-vars'
:
1
,
'no-shadow'
:
0
,
'no-shadow'
:
0
,
'import/extensions'
:
0
,
'import/extensions'
:
0
,
'import/prefer-default-export'
:
1
'import/prefer-default-export'
:
0
,
'import/no-unresolved'
:
0
,
'no-underscore-dangle'
:
0
,
'eol-last'
:
0
,
'no-unused-expressions'
:
0
,
'import/named'
:
0
,
'import/no-named-as-default-member'
:
0
},
},
};
};
src/components/error-nofity/index.js
View file @
081f3c08
...
@@ -19,4 +19,4 @@ function install(Vue) {
...
@@ -19,4 +19,4 @@ function install(Vue) {
}
}
Vue
.
prototype
.
$errorNotify
=
errorNotify
Vue
.
prototype
.
$errorNotify
=
errorNotify
}
}
export
default
install
export
default
install
\ No newline at end of file
src/components/video-item/index.vue
View file @
081f3c08
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
videoPlay
}
from
"@/assets/images"
;
import
{
videoPlay
}
from
'@/assets/images'
;
export
default
{
export
default
{
data
()
{
data
()
{
...
...
src/main.js
View file @
081f3c08
import
Vue
from
'vue'
;
import
router
from
'@/router'
;
import
router
from
'@/router'
;
import
Vue
from
'vue'
;
import
store
from
'@/store'
;
import
store
from
'@/store'
;
import
{
nativeBrige
}
from
'@/plugins'
;
import
{
nativeBrige
}
from
'@/plugins'
;
import
ErrorNotify
from
'@/components/error-nofity'
import
ErrorNotify
from
'@/components/error-nofity'
...
@@ -8,6 +8,7 @@ import {
...
@@ -8,6 +8,7 @@ import {
}
from
'vant'
;
}
from
'vant'
;
import
App
from
'./App.vue'
;
import
App
from
'./App.vue'
;
Vue
.
config
.
productionTip
=
false
;
Vue
.
config
.
productionTip
=
false
;
Vue
.
use
(
Tag
);
Vue
.
use
(
Tag
);
Vue
.
use
(
Button
);
Vue
.
use
(
Button
);
...
...
vue.config.js
View file @
081f3c08
...
@@ -6,8 +6,6 @@ const config = require('./config');
...
@@ -6,8 +6,6 @@ const config = require('./config');
const
resolve
=
(
dir
)
=>
path
.
join
(
__dirname
,
dir
);
const
resolve
=
(
dir
)
=>
path
.
join
(
__dirname
,
dir
);
console
.
log
(
'skeletonRoutes : '
,
config
.
skeletonRoutes
)
module
.
exports
=
{
module
.
exports
=
{
configureWebpack
:
(
wpConfig
)
=>
{
configureWebpack
:
(
wpConfig
)
=>
{
const
plugins
=
[];
const
plugins
=
[];
...
@@ -21,12 +19,13 @@ module.exports = {
...
@@ -21,12 +19,13 @@ module.exports = {
chainWebpack
:
(
config
)
=>
{
chainWebpack
:
(
config
)
=>
{
if
(
process
.
env
.
NODE_ENV
!==
'development'
)
{
if
(
process
.
env
.
NODE_ENV
!==
'development'
)
{
config
.
plugin
(
'html'
).
tap
((
opts
)
=>
{
config
.
plugin
(
'html'
).
tap
((
opts
)
=>
{
opts
[
0
].
minify
.
removeComments
=
false
if
(
opts
&&
opts
[
0
]
&&
opts
[
0
].
minify
)
{
opts
[
0
].
minify
.
removeComments
=
false
}
return
opts
return
opts
})
})
}
}
},
},
css
:
{
css
:
{
loaderOptions
:
{
loaderOptions
:
{
postcss
:
{
postcss
:
{
...
...
yarn.lock
View file @
081f3c08
...
@@ -9344,6 +9344,11 @@ vary@~1.1.2:
...
@@ -9344,6 +9344,11 @@ vary@~1.1.2:
resolved "https://registry.npm.taobao.org/vary/download/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
resolved "https://registry.npm.taobao.org/vary/download/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=
integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=
vconsole@^3.3.4:
version "3.3.4"
resolved "http://git.jksxb.cn:8081/repository/geek/vconsole/-/vconsole-3.3.4.tgz#a7dacd8887b3d3e902e8d18425cda56c34e77f51"
integrity sha1-p9rNiIez0+kC6NGEJc2lbDTnf1E=
vendors@^1.0.0:
vendors@^1.0.0:
version "1.0.4"
version "1.0.4"
resolved "https://registry.npm.taobao.org/vendors/download/vendors-1.0.4.tgz#e2b800a53e7a29b93506c3cf41100d16c4c4ad8e"
resolved "https://registry.npm.taobao.org/vendors/download/vendors-1.0.4.tgz#e2b800a53e7a29b93506c3cf41100d16c4c4ad8e"
...
...
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