fix:修改css文件cdn域名 (#228)

* fix:修改css文件cdn地址
This commit is contained in:
yaoyun8 2024-01-05 09:39:59 +08:00 committed by GitHub
parent fe477ad74c
commit 38762017ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 14 deletions

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="https://npm.onmicrosoft.cn/@opentiny/vue-theme@3.11/index.css" rel="stylesheet" />
<link href="%VITE_CDN_DOMAIN%/@opentiny/vue-theme@3.11/index.css" rel="stylesheet" />
<style type="text/css">
.loading-warp {
display: flex;

View File

@ -1,14 +1,14 @@
/**
* Copyright (c) 2023 - present TinyEngine Authors.
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/
* Copyright (c) 2023 - present TinyEngine Authors.
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/
import appVue from './srcFiles/App.vue?raw'
import injectGlobalJS from './srcFiles/injectGlobal.js?raw'
@ -29,7 +29,7 @@ const srcFiles = {}
srcFiles['App.vue'] = appVue
srcFiles['Main.vue'] = mainVue
srcFiles['constant.js'] = constantJS
srcFiles['app.js'] = appJS
srcFiles['app.js'] = appJS.replace(/VITE_CDN_DOMAIN/g, import.meta.env.VITE_CDN_DOMAIN)
srcFiles['injectGlobal.js'] = injectGlobalJS
srcFiles['lowcode.js'] = lowcodeJS
srcFiles['dataSourceMap.js'] = dataSourceMapJS

View File

@ -16,5 +16,5 @@ function addCss(href) {
link.setAttribute('href', href)
document.head.appendChild(link)
}
addCss('https://npm.onmicrosoft.cn/@opentiny/vue-theme@3.11/index.css')
addCss('https://npm.onmicrosoft.cn/@opentiny/vue-theme-mobile@3.11/index.css')
addCss('VITE_CDN_DOMAIN/@opentiny/vue-theme@3.11/index.css')
addCss('VITE_CDN_DOMAIN/@opentiny/vue-theme-mobile@3.11/index.css')