mirror of
https://gitee.com/gz-yami/mall4v.git
synced 2026-03-22 08:07:17 +08:00
vue3框架
This commit is contained in:
37
index.html
Normal file
37
index.html
Normal file
@@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<script id="qqMap" charset="utf-8"></script>
|
||||
<meta name="renderer" content="webkit">
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
<script>
|
||||
console.log('mall4j.v231106')
|
||||
const webConfigData = JSON.parse(localStorage.getItem('b2cWebConfigData'));
|
||||
if (webConfigData) {
|
||||
let lang = localStorage.getItem('b2cLang')
|
||||
if (lang !== 'en') {
|
||||
document.title = webConfigData.bsTitleContentCn || ''
|
||||
} else {
|
||||
document.title = webConfigData.bsTitleContentEn || ''
|
||||
}
|
||||
let facicon = document.querySelector('link[rel="icon"]')
|
||||
if (facicon !== null) {
|
||||
facicon.href = webConfigData.bsTitleImg
|
||||
} else {
|
||||
facicon = document.createElement('link')
|
||||
facicon.rel = 'icon'
|
||||
facicon.href = webConfigData.bsTitleImg
|
||||
document.head.appendChild(facicon)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user