Kaynağa Gözat

修改页面传参

ming 3 yıl önce
ebeveyn
işleme
7c51fbb961
1 değiştirilmiş dosya ile 20 ekleme ve 8 silme
  1. 20 8
      src/views/index.vue

+ 20 - 8
src/views/index.vue

@@ -13,9 +13,14 @@
         >
           <span>{{ route.meta.title }}</span>
         </router-link>
-        <a href="https://pcdev.ewoogi.com/adminfiv/#/" target="_blank"  class="router-left router_left1">后台管理</a>
+        <a
+          :href="'http://localhost:9999/#/login?userName=admin'"
+          target="_blank"
+          class="router-left router_left1"
+          >后台管理</a
+        >
 
-         <!-- <router-link  class="router-left router_left1" to="https://www.baidu.com/"></router-link> -->
+        <!-- <router-link  class="router-left router_left1" to="https://www.baidu.com/"></router-link> -->
       </div>
       <!-- 主页路由菜单 结束 -->
       <!-- 站点路由菜单 开始 -->
@@ -68,10 +73,8 @@
 
       <div class="title">{{ name }}</div>
       <div class="rigth">
-
         <div class="showTime">{{ time }}</div>
-       
-        
+
         <router-link class="home" to="/home" v-if="home"></router-link>
         <div class="news">
           <div></div>
@@ -85,6 +88,7 @@
 
 <script>
 import api from "@/api/index";
+import { getToken } from "@/utils/auth";
 export default {
   name: "App",
   data() {
@@ -96,10 +100,18 @@ export default {
       options: [],
       value: 1,
       time: null,
+      assToken: "",
+      username: "",
+      password: "",
     };
   },
   components: {},
   mounted() {
+    this.assToken = getToken();
+
+    console.log("getToken()");
+    console.log(getToken());
+
     setInterval(() => {
       this.$store.commit("getTimeAll");
       var time = this.$store.state.Time_All;
@@ -175,9 +187,9 @@ export default {
 
 <style scoped lang="less">
 #header {
-  -moz-user-select: none;//设置文本不可选中
-  -webkit-user-select: none;//设置文本不可选中
-  user-select: none;//设置文本不可选中
+  -moz-user-select: none; //设置文本不可选中
+  -webkit-user-select: none; //设置文本不可选中
+  user-select: none; //设置文本不可选中
   .router-index {
     position: absolute;
     display: flex;