فهرست منبع

set up some links

night-cherry 1 ماه پیش
والد
کامیت
00ef12ee32
1فایلهای تغییر یافته به همراه10 افزوده شده و 3 حذف شده
  1. 10 3
      index.html

+ 10 - 3
index.html

@@ -93,11 +93,18 @@
 		<!--<input type="button" text="中文" @click="changelang('zh')"/>
 		<input type="button" text="english" @click="changelang('en')"/>-->
 		<p>
-			<router-link to="/home">首页</router-link>
-			<router-link to="/test">test</router-link>
-			<router-link to="/about">关于</router-link>
+			<router-link to="/home"  @click="dialog.show()">首页</router-link>
+			<router-link to="/test" @click="dialog.show()">test</router-link>
+			<router-link to="/about" @click="dialog.show()">关于</router-link>
 		</p>
+
 		<router-view></router-view>
+
+		<dialog id="dialog">
+			<h2>这是弹窗内容</h2>
+			<button onclick="dialog.close()">关闭</button>
+		</dialog>
+
     </template>
     <!-- <template style="width:100%; backgroud-color:oranged;">
 	<Home @op="add">home vue</Home>