Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
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
李俊赕
self-support
Commits
412f4ae3
Commit
412f4ae3
authored
Jun 01, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图片缓存临时不要
parent
637affba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
util.js
src/utils/util.js
+1
-0
No files found.
src/utils/util.js
View file @
412f4ae3
...
@@ -55,6 +55,7 @@ async function validImages(imgurl) {
...
@@ -55,6 +55,7 @@ async function validImages(imgurl) {
const
imageCache
=
function
(
vm
,
src
,
host
)
{
const
imageCache
=
function
(
vm
,
src
,
host
)
{
host
=
host
||
process
.
uniEnv
.
qn_base_url
host
=
host
||
process
.
uniEnv
.
qn_base_url
let
image_url
=
host
+
src
let
image_url
=
host
+
src
return
image_url
// 临时
let
image_name
=
md5Libs
.
md5
(
image_url
)
let
image_name
=
md5Libs
.
md5
(
image_url
)
var
arr
=
Object
.
keys
(
vm
.
vuex_cache
);
var
arr
=
Object
.
keys
(
vm
.
vuex_cache
);
if
(
vm
.
vuex_cache
&&
arr
.
length
&&
arr
.
includes
(
image_name
)
&&
if
(
vm
.
vuex_cache
&&
arr
.
length
&&
arr
.
includes
(
image_name
)
&&
...
...
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