Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
f09d453b
Commit
f09d453b
authored
Mar 15, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
aeb4bc03
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
package.json
package.json
+1
-0
index.js
src/plug/index.js
+1
-0
No files found.
package.json
View file @
f09d453b
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
"dev"
:
"webpack-dev-server --inline --progress --config build/webpack.dev.conf.js"
,
"dev"
:
"webpack-dev-server --inline --progress --config build/webpack.dev.conf.js"
,
"start"
:
"npm run dev"
,
"start"
:
"npm run dev"
,
"lint"
:
"eslint --ext .js,.vue src"
,
"lint"
:
"eslint --ext .js,.vue src"
,
"serve"
:
"node --max_old_space_size=4096 node_modules/.bin/vue-cli-service serve --open"
,
"build"
:
"node --max-old-space-size=4096 build/build.js"
"build"
:
"node --max-old-space-size=4096 build/build.js"
},
},
"dependencies"
:
{
"dependencies"
:
{
...
...
src/plug/index.js
View file @
f09d453b
...
@@ -610,6 +610,7 @@ export default {
...
@@ -610,6 +610,7 @@ export default {
// w : 宽
// w : 宽
// h : 高
// h : 高
Vue
.
prototype
.
compressImg
=
function
(
path
,
type
,
w
,
h
)
{
Vue
.
prototype
.
compressImg
=
function
(
path
,
type
,
w
,
h
)
{
return
path
let
url
=
this
.
domainManager
().
compressUrl
;
let
url
=
this
.
domainManager
().
compressUrl
;
let
poise
=
'm_filt'
;
let
poise
=
'm_filt'
;
w
=
w
?
w
:
''
w
=
w
?
w
:
''
...
...
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