yang1998 2 years ago
parent
commit
ffc22ae102
2 changed files with 5 additions and 1 deletions
  1. 3 0
      src/main.js
  2. 2 1
      src/views/userManage/AuthManage.vue

+ 3 - 0
src/main.js

@@ -5,6 +5,7 @@ import ElementUI from 'element-ui'
 import 'element-ui/lib/theme-chalk/index.css'
 import './assets/styles/index.scss'
 import { initDynamicRoutes } from './utils/createRoutes'
+import {setCookie} from "@/utils/service/cookie";
 
 var axios = require('axios')
 // axios.defaults.baseURL = 'http://47.101.207.123:8080/gateway-server'
@@ -22,6 +23,8 @@ axios.interceptors.response.use(
 Vue.config.productionTip = false
 Vue.use(ElementUI, {size: 'mini'})
 
+// setCookie("m_token","eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIxIiwiaXNzIjoieXlqLXRlc3Qtand0Iiwic3ViIjoie1wicm9sZVwiOlwiMSwyLDExLDEyLDEzLDE0LDE1LDE2XCIsXCJ1bml0TmFtZVwiOlwi5LiK5rW35biC5rWL57uY6ZmiXCIsXCJjb250YWN0XCI6XCIxMjNcIixcIm5hbWVcIjpcIui2hee6p-euoeeQhuWRmFwiLFwidW5pdElkXCI6MSxcInRlbGVwaG9uZVwiOlwiMjIyMlwiLFwidXNlck5hbWVcIjpcInN1cGVyXCIsXCJ1c2VySWRcIjoxLFwiZW1haWxcIjpcInNjZzYyMjhAMTYzLmNvbVwifSIsImlhdCI6MTY2MDU1NzI1NywiZXhwIjoxNjYwNjQzNjU3fQ.AgtftcCzv85PTlqYPhPH0QaC5bpbty9YVfqgC_o0sn8")
+
 initDynamicRoutes()
 
 new Vue({

+ 2 - 1
src/views/userManage/AuthManage.vue

@@ -34,7 +34,8 @@
             </el-table-column>
             <el-table-column fixed="right" label="操作" min-width="100">
               <template slot-scope="scope">
-                <el-button @click="toEdit(scope.row)" type="text">编辑</el-button>
+                <el-button v-if="scope.row.type != 0" @click="toEdit(scope.row)" type="text">编辑</el-button>
+<!--                <el-button @click="toEdit(scope.row)" type="text">编辑</el-button>-->
                 <el-button @click="toDetail(scope.row)" type="text">查看</el-button>
                 <el-button v-if="scope.row.type != 0" @click="toDelete(scope.row)" type="text">删除</el-button>
               </template>