Your Name vor 4 Jahren
Ursprung
Commit
e999e957e6

+ 1
- 1
.env.development Datei anzeigen

@@ -2,7 +2,7 @@
2 2
 ENV = 'development'
3 3
 
4 4
 # base api
5
-VUE_APP_BASE_API = 'http://localhost:8888/api'
5
+VUE_APP_BASE_API = 'http://localhost:8888/api/admin'
6 6
 
7 7
 # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
8 8
 # to control whether the babel-plugin-dynamic-import-node plugin is enabled.

+ 1
- 1
.env.production Datei anzeigen

@@ -2,5 +2,5 @@
2 2
 ENV = 'production'
3 3
 
4 4
 # base api
5
-VUE_APP_BASE_API = 'http://47.105.159.10:8888/api'
5
+VUE_APP_BASE_API = 'https://app.xnsport.cn/api/admin'
6 6
 

BIN
public/favicon.ico Datei anzeigen


BIN
src/assets/logo.png Datei anzeigen


+ 13
- 7
src/layout/components/Navbar.vue Datei anzeigen

@@ -6,7 +6,7 @@
6 6
 
7 7
     <div class="right-menu">
8 8
       <template v-if="device!=='mobile'">
9
-        <search id="header-search" class="right-menu-item" />
9
+        <!-- <search id="header-search" class="right-menu-item" /> -->
10 10
 
11 11
         <error-log class="errLog-container right-menu-item hover-effect" />
12 12
 
@@ -20,11 +20,11 @@
20 20
 
21 21
       <el-dropdown class="avatar-container right-menu-item hover-effect" trigger="click">
22 22
         <div class="avatar-wrapper">
23
-          <img src="https://geekidea.oss-cn-chengdu.aliyuncs.com/spring-boot-plus/img/logo.png" class="user-avatar">
23
+          <img :src="logo" class="user-avatar">
24 24
           <i class="el-icon-caret-bottom" />
25 25
         </div>
26 26
         <el-dropdown-menu slot="dropdown">
27
-          <router-link to="/profile/index">
27
+          <!-- <router-link to="/profile/index">
28 28
             <el-dropdown-item>Profile</el-dropdown-item>
29 29
           </router-link>
30 30
           <router-link to="/">
@@ -35,7 +35,7 @@
35 35
           </a>
36 36
           <a target="_blank" href="https://panjiachen.github.io/vue-element-admin-site/#/">
37 37
             <el-dropdown-item>Docs</el-dropdown-item>
38
-          </a>
38
+          </a> -->
39 39
           <el-dropdown-item divided @click.native="logout">
40 40
             <span style="display:block;">Log Out</span>
41 41
           </el-dropdown-item>
@@ -52,7 +52,8 @@ import Hamburger from '@/components/Hamburger'
52 52
 import ErrorLog from '@/components/ErrorLog'
53 53
 import Screenfull from '@/components/Screenfull'
54 54
 import SizeSelect from '@/components/SizeSelect'
55
-import Search from '@/components/HeaderSearch'
55
+// import Search from '@/components/HeaderSearch'
56
+import logo from '@/assets/logo.png'
56 57
 
57 58
 export default {
58 59
   components: {
@@ -60,8 +61,13 @@ export default {
60 61
     Hamburger,
61 62
     ErrorLog,
62 63
     Screenfull,
63
-    SizeSelect,
64
-    Search
64
+    SizeSelect
65
+    // Search
66
+  },
67
+  data() {
68
+    return {
69
+      logo
70
+    }
65 71
   },
66 72
   computed: {
67 73
     ...mapGetters([

+ 4
- 2
src/layout/components/Sidebar/Logo.vue Datei anzeigen

@@ -14,6 +14,8 @@
14 14
 </template>
15 15
 
16 16
 <script>
17
+import logoPng from '@/assets/logo.png'
18
+
17 19
 export default {
18 20
   name: 'SidebarLogo',
19 21
   props: {
@@ -24,8 +26,8 @@ export default {
24 26
   },
25 27
   data() {
26 28
     return {
27
-      title: 'spring-boot-plus-vue',
28
-      logo: 'https://geekidea.oss-cn-chengdu.aliyuncs.com/spring-boot-plus/img/logo.png'
29
+      title: '小牛 彩票',
30
+      logo: logoPng
29 31
     }
30 32
   }
31 33
 }

+ 1
- 1
src/settings.js Datei anzeigen

@@ -1,5 +1,5 @@
1 1
 module.exports = {
2
-  title: 'Spring Boot Plus Vue',
2
+  title: '小牛彩票',
3 3
 
4 4
   /**
5 5
    * @type {boolean} true | false

+ 4
- 11
src/views/login/index.vue Datei anzeigen

@@ -46,13 +46,6 @@
46 46
       </el-tooltip>
47 47
 
48 48
       <el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;" @click.native.prevent="handleLogin">Login</el-button>
49
-
50
-      <div style="position:relative">
51
-        <div class="tips">
52
-          <span>Username : admin</span>
53
-          <span>Password : 123456</span>
54
-        </div>
55
-      </div>
56 49
     </el-form>
57 50
 
58 51
   </div>
@@ -60,11 +53,11 @@
60 53
 
61 54
 <script>
62 55
 import { validUsername } from '@/utils/validate'
63
-import SocialSign from './components/SocialSignin'
56
+// import SocialSign from './components/SocialSignin'
64 57
 
65 58
 export default {
66 59
   name: 'Login',
67
-  components: { SocialSign },
60
+  // components: { SocialSign },
68 61
   data() {
69 62
     const validateUsername = (rule, value, callback) => {
70 63
       if (!validUsername(value)) {
@@ -82,8 +75,8 @@ export default {
82 75
     }
83 76
     return {
84 77
       loginForm: {
85
-        username: 'admin',
86
-        password: '123456'
78
+        username: '',
79
+        password: ''
87 80
       },
88 81
       loginRules: {
89 82
         username: [{ required: true, trigger: 'blur', validator: validateUsername }],

+ 1
- 1
vue.config.js Datei anzeigen

@@ -24,7 +24,7 @@ module.exports = {
24 24
    * In most cases please use '/' !!!
25 25
    * Detail: https://cli.vuejs.org/config/#publicpath
26 26
    */
27
-  publicPath: '/',
27
+  publicPath: './',
28 28
   outputDir: 'dist',
29 29
   assetsDir: 'static',
30 30
   lintOnSave: process.env.NODE_ENV === 'development',