新建项目
This commit is contained in:
48
src/views/index.vue
Normal file
48
src/views/index.vue
Normal file
@@ -0,0 +1,48 @@
|
||||
<template>
|
||||
<div class="imgDemo">
|
||||
<!--<el-button type="primary" @click="getToken()">token</el-button>
|
||||
<div style="width: 200px;">{{token}}</div>-->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {login1} from '@/api/system/user/login.js'
|
||||
export default {
|
||||
name: '',
|
||||
data() {
|
||||
return {
|
||||
token1:'',
|
||||
}
|
||||
|
||||
},
|
||||
created() {
|
||||
this.token1 = window.sessionStorage.getItem('token');
|
||||
console.log("tokenName2222", this.token1)
|
||||
},
|
||||
methods:{
|
||||
// getToken(){
|
||||
// let params = {
|
||||
// password: "329653",
|
||||
// roleSid: "",
|
||||
// token: "",
|
||||
// userName: "15097329653",
|
||||
// verifyCode: ""
|
||||
// }
|
||||
// login1(params).then(res => {
|
||||
// this.token = res.data.token
|
||||
// window.sessionStorage.setItem('token', res.data.token)
|
||||
// })
|
||||
// }
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.imgDemo {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: radial-gradient(#fff,#f5f7f4, #fff);
|
||||
}
|
||||
canvas {
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user