chore: icon 显示

This commit is contained in:
CaptainB 2023-07-26 11:51:29 +08:00 committed by 刘瑞斌
parent 648d1dc0c5
commit ddf54f0204
10 changed files with 22 additions and 19 deletions

View File

@ -5,7 +5,7 @@
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<link rel="shortcut icon" href="/display/file/logo" type="image/x-icon">
<title>
<%= htmlWebpackPlugin.options.title %>
</title>

View File

@ -280,6 +280,9 @@
<copy todir="src/main/resources/static/assets">
<fileset dir="../sdk-parent/frontend/src/assets"/>
</copy>
<copy todir="src/main/resources/static/assets">
<fileset dir="../sdk-parent/frontend/public" includes="favicon.ico"/>
</copy>
</target>
</configuration>
<goals>

View File

@ -57,8 +57,8 @@ public class BaseDisplayService {
PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver(getClass().getClassLoader());
switch (imageName) {
case "logo":
bytes = IOUtils.toByteArray(resolver.getResource("/static/assets/logo-light-MeterSphere.svg").getInputStream());
contentType = MediaType.valueOf("image/svg+xml");
bytes = IOUtils.toByteArray(resolver.getResource("/static/assets/favicon.ico").getInputStream());
contentType = MediaType.valueOf("image/vnd.microsoft.icon");
break;
case "loginImage":
bytes = IOUtils.toByteArray(resolver.getResource("/static/assets/info.png").getInputStream());

View File

@ -5,7 +5,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<link rel="shortcut icon" href="/display/file/logo" type="image/x-icon">
</head>

View File

@ -5,7 +5,7 @@
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<link rel="shortcut icon" href="/display/file/logo" type="image/x-icon">
<title>
<%= htmlWebpackPlugin.options.title %>
</title>

View File

@ -5,7 +5,7 @@
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<link rel="shortcut icon" href="/display/file/logo" type="image/x-icon">
<title>
<%= htmlWebpackPlugin.options.title %>
</title>

View File

@ -5,7 +5,7 @@
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<link rel="shortcut icon" href="/display/file/logo" type="image/x-icon">
<title>
<%= htmlWebpackPlugin.options.title %>
</title>

View File

@ -5,7 +5,7 @@
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<link rel="shortcut icon" href="/display/file/logo" type="image/x-icon">
<title>
<%= htmlWebpackPlugin.options.title %>
</title>

View File

@ -5,7 +5,7 @@
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<link rel="shortcut icon" href="/display/file/logo" type="image/x-icon">
<title>
<%= htmlWebpackPlugin.options.title %>
</title>

View File

@ -5,7 +5,7 @@
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<link rel="shortcut icon" href="/display/file/logo" type="image/x-icon">
<title>
<%= htmlWebpackPlugin.options.title %>
</title>