Skip to content

Commit aff474e

Browse files
committed
chore: refactor e2e test
1 parent e6d8fd2 commit aff474e

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

Diff for: examples/keepalive-view/app.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ new Vue({
4747
template: `
4848
<div id="app">
4949
<ul>
50-
<li><router-link tag="a" to="/index/child1">index child 1</router-link></li>
51-
<li><router-link tag="a" to="/index/child2">index child 2</router-link></li>
52-
<li><router-link tag="a" to="/home">home</router-link></li>
50+
<li><router-link to="/index/child1">index child 1</router-link></li>
51+
<li><router-link to="/index/child2">index child 2</router-link></li>
52+
<li><router-link to="/home">home</router-link></li>
5353
</ul>
5454
<keep-alive>
5555
<router-view></router-view>

Diff for: examples/keepalive-view/index.html

-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
<!DOCTYPE html>
22
<link rel="stylesheet" href="/global.css">
3-
<style>
4-
a.router-link-active, li.router-link-active a {
5-
color: #f66;
6-
}
7-
a.router-link-exact-active, li.router-link-exact-active a {
8-
border-bottom: 1px solid #f66;
9-
}
10-
</style>
113
<a href="/">&larr; Examples index</a>
124
<div id="app"></div>
135
<script src="/__build__/shared.chunk.js"></script>

0 commit comments

Comments
 (0)