Browse Source

增加动态标题

caner 1 year ago
parent
commit
ca98bde3b6

+ 2 - 1
index.html

@@ -3,7 +3,8 @@
   <head>
   <head>
     <meta charset="UTF-8" />
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <title>home</title>
+    <link rel="icon" href="/favicon.ico" />
+    <title>Caner</title>
   </head>
   </head>
   <body>
   <body>
     <div id="app"></div>
     <div id="app"></div>

+ 1 - 0
src/pages/views/chart/index.vue

@@ -389,6 +389,7 @@ const pressureOption = {
 }
 }
 
 
 onMounted(() => {
 onMounted(() => {
+  document.title = 'ehcart速度计面板'
   const dom = document.getElementById('chartd') as HTMLElement
   const dom = document.getElementById('chartd') as HTMLElement
   const dom2 = document.getElementById('charts') as HTMLElement
   const dom2 = document.getElementById('charts') as HTMLElement
   chartd = echarts.init(dom)
   chartd = echarts.init(dom)

+ 1 - 0
src/pages/views/draw/index.vue

@@ -231,6 +231,7 @@ function changeOption(v, option) {
 }
 }
 
 
 onMounted(() => {
 onMounted(() => {
+  document.title = 'canvas 画图'
   const canvas = document.getElementById('CANVAS')
   const canvas = document.getElementById('CANVAS')
   drawCanvas._init({
   drawCanvas._init({
     canvas,
     canvas,

+ 1 - 0
src/pages/views/edit/index.vue

@@ -7,6 +7,7 @@
 import { onMounted } from 'vue'
 import { onMounted } from 'vue'
 import RichEdit from './component/editeDemo.vue'
 import RichEdit from './component/editeDemo.vue'
 onMounted(() => {
 onMounted(() => {
+  document.title = '富文本编辑器'
   const isIOS = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
   const isIOS = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
   const isAndroid = navigator.userAgent.includes('Android') || navigator.userAgent.includes('Linux') // g
   const isAndroid = navigator.userAgent.includes('Android') || navigator.userAgent.includes('Linux') // g
   if (isIOS || isAndroid) {
   if (isIOS || isAndroid) {

+ 1 - 0
src/pages/views/fly/index.vue

@@ -18,6 +18,7 @@ const timer = setInterval(() => {
 }, 1000)
 }, 1000)
 
 
 onMounted(() => {
 onMounted(() => {
+  document.title = '二维动态导向'
   const isIOS = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
   const isIOS = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
   const isAndroid = navigator.userAgent.includes('Android') || navigator.userAgent.includes('Linux') // g
   const isAndroid = navigator.userAgent.includes('Android') || navigator.userAgent.includes('Linux') // g
   if (isIOS || isAndroid) {
   if (isIOS || isAndroid) {

+ 1 - 0
src/pages/views/home/index.vue

@@ -121,6 +121,7 @@ const intCanvas = () => {
 }
 }
 
 
 onMounted(() => {
 onMounted(() => {
+  document.title = '多人在线画板'
   intCanvas()
   intCanvas()
   nextTick(() => {
   nextTick(() => {
     socket.connect()
     socket.connect()

+ 4 - 1
src/pages/views/planTool/index.vue

@@ -301,7 +301,10 @@ watchEffect(() => {
 })
 })
 
 
 // 生命周期
 // 生命周期
-onMounted(() => getTunnelPath())
+onMounted(() => {
+  document.title = '瓦片图缩放'
+  getTunnelPath()
+})
 </script>
 </script>
 <style lang="scss" scoped>
 <style lang="scss" scoped>
 #apps {
 #apps {

+ 0 - 3
src/pages/views/test/index.vue

@@ -1,3 +0,0 @@
-<template>
-  <div>3D测试</div>
-</template>

+ 0 - 10
src/pages/views/test/route.ts

@@ -1,10 +0,0 @@
-import { RouteRecordRaw } from 'vue-router'
-
-export default {
-  path: '/test',
-  meta: {
-    authorize: true
-  },
-  component: () => import('./index.vue'),
-  children: []
-} as RouteRecordRaw