Skip to content

Commit e86d7cf

Browse files
Merge pull request #7 from xtt55/fix-origin
modify the system title
2 parents d5a6b7c + a4b65af commit e86d7cf

File tree

6 files changed

+30
-11
lines changed

6 files changed

+30
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "dws",
2+
"name": "scriptis",
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width,initial-scale=1.0">
77
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
8-
<title>DWS</title>
8+
<title>Scriptis</title>
99
</head>
1010
<body>
1111
<noscript>

src/js/module/demo/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default {
2020
path: '/Demo',
2121
name: 'Demo',
2222
meta: {
23-
title: 'DWS | Demo',
23+
title: 'Scriptis | Demo',
2424
publicPage: false,
2525
},
2626
component: () => import('./index.vue'),

src/js/module/header/index.scss

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,22 @@
1818
display: inline-block;
1919
vertical-align: top;
2020
font-size: 26px;
21-
color: $body-background ;
21+
color: $body-background;
22+
.logo-main-titile {
23+
font-size: 24px;
24+
height: 40px;
25+
line-height: 40px;
26+
font-weight: bold;
27+
28+
}
29+
.logo-sub-title {
30+
font-size: 12px;
31+
height: 40px;
32+
line-height: 40px;
33+
.logo-sub-title-main {
34+
font-weight: bold;
35+
}
36+
}
2237
}
2338
.menu{
2439
display: inline-block;

src/js/module/header/index.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<template>
22
<div class="layout-header">
33
<div class="logo">
4-
WeDataSphere
4+
<span class="logo-main-titile">Scriptis</span>
5+
<span class="logo-sub-title">
6+
<span>@Powered by </span>
7+
<span class="logo-sub-title-main">Linkis</span>
8+
</span>
59
</div>
610
<ul class="menu">
711
<li
@@ -11,7 +15,7 @@
1115
class="menu-item"
1216
@click="goto(item.path)">
1317
<span>{{ item.name }}</span>
14-
18+
1519
</li>
1620
</ul>
1721
<div
@@ -52,7 +56,7 @@ export default {
5256
data() {
5357
return {
5458
sys: [{
55-
name: '意书',
59+
name: '开发',
5660
path: 'Home',
5761
}, {
5862
name: '管理台',

src/js/service/router.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ const router = new VueRouter({
88
redirect: '/home',
99
component: Layout,
1010
meta: {
11-
title: 'DWS',
11+
title: 'Scriptis',
1212
publicPage: true, // 权限公开
1313
},
1414
children: [
1515
{
1616
path: 'home',
1717
name: 'Home',
1818
meta: {
19-
title: 'DWS',
19+
title: 'Scriptis',
2020
keepAlive: true, // 需要被缓存
2121
publicPage: true, // 权限公开
2222
},
@@ -74,7 +74,7 @@ const router = new VueRouter({
7474
{
7575
path: '*',
7676
meta: {
77-
title: 'DWS',
77+
title: 'Scriptis',
7878
publicPage: true,
7979
},
8080
component: () => import('../view/404.vue'),
@@ -96,7 +96,7 @@ router.beforeEach((to, from, next) => {
9696
router.afterEach((to, from) => {
9797
console.log('访问:', to.fullPath);
9898
if (to.meta) {
99-
document.title = to.meta.title || 'DWS';
99+
document.title = to.meta.title || 'Scriptis';
100100
}
101101
});
102102

0 commit comments

Comments
 (0)