Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
website-middleground
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c0e12a02
authored
Jul 30, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改图片地址问题
1 parent
0494a6a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/utils/common.ts
src/utils/common.ts
View file @
c0e12a0
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-10-10 11:37:11
* @LastEditors: huyue
* @LastEditTime: 2024-07-30 17:
36
:15
* @LastEditTime: 2024-07-30 17:
53
:15
*/
/** 三个数字加一个逗号 */
const
numAddSymbol
=
(
val
:
number
|
string
|
undefined
)
=>
{
...
...
@@ -12,7 +12,7 @@ const numAddSymbol = (val: number | string | undefined) => {
// 获取图片
const
getImageUrl
=
(
name
:
any
)
=>
{
return
new
URL
(
`
../../public
/images/`
+
name
+
".png"
,
import
.
meta
.
url
).
href
;
return
new
URL
(
`/images/`
+
name
+
".png"
,
import
.
meta
.
url
).
href
;
};
export
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment