Browse Source

style: 详情预览页样式修改

TIANYONG 5 months ago
parent
commit
c2c4edae7d
2 changed files with 26 additions and 23 deletions
  1. 24 21
      src/view/selection/index.tsx
  2. 2 2
      vite.config.ts

+ 24 - 21
src/view/selection/index.tsx

@@ -263,27 +263,30 @@ export default defineComponent({
 		});
 		return () => (
 			<>
-				<div id="selectionBgBox" class={styles.staveBgContainer}>
-						{
-							selectData.staves.map((item: any) => {
-								return (
-									<>
-										{
-											item.staveBox && item.multipleRestMeasures <= 1 && 
-												<div 
-													style={{
-														left:item.staveBox.left,
-														top:`calc(${item.staveBox.top} + ${item.staveBox.height})`,
-														width:item.staveBox.width
-													}}
-													class={[styles.staveBg]}
-												></div>
-										}
-									</>
-								)
-							})
-						}
-				</div>
+				{
+					!state.isPreView &&
+					<div id="selectionBgBox" class={styles.staveBgContainer}>
+					{
+						selectData.staves.map((item: any) => {
+							return (
+								<>
+									{
+										item.staveBox && item.multipleRestMeasures <= 1 && 
+											<div 
+												style={{
+													left:item.staveBox.left,
+													top:`calc(${item.staveBox.top} + ${item.staveBox.height})`,
+													width:item.staveBox.width
+												}}
+												class={[styles.staveBg]}
+											></div>
+									}
+								</>
+							)
+						})
+					}
+					</div>					
+				}
 				<div
 					id="selectionBox"
 					class={[

+ 2 - 2
vite.config.ts

@@ -76,8 +76,8 @@ export default defineConfig({
         // target: "https://kt.colexiu.com",
         // target: "https://test.lexiaoya.cn",
         // target: "https://kt.colexiu.com",
-        target: "https://test.resource.colexiu.com", // 内容平台开发环境,内容平台开发,需在url链接上加上isCbs=true
-        // target: "https://test.kt.colexiu.com",
+        // target: "https://test.resource.colexiu.com", // 内容平台开发环境,内容平台开发,需在url链接上加上isCbs=true
+        target: "https://test.kt.colexiu.com",
         // target: "https://mec.colexiu.com",
         changeOrigin: true,
         rewrite: (path) => path.replace(/^\/instrument/, ""),