zoukankan      html  css  js  c++  java
  • 登录登出

    login.vue

    if(response.data=="00"){

    mymenu.vue

      <el-menu-item style="margin-left:150px" v-if="!this.$store.state.logined" index="6">登陆</el-menu-item>
                    <el-menu-item  v-if="!this.$store.state.logined" index="7">注册</el-menu-item>
    
                     <el-submenu style="margin-left:100px" v-else index="5">
                        <template slot="title">
                              <i class="el-icon-menu"></i>
                              <span slot="title">我的账号</span>
                        </template>
                
                        <el-menu-item index="7-1">退出</el-menu-item>
                     </el-submenu>
    
    
    
              getLoginStatus(thisvue){
            var gvue=thisvue;
            this.$ajax({
                method: 'get',
                url: 'api/loginstatus?time='+new Date().getTime(),            
                /*
                data: {
                  usrname: this.ruleForm2.usrname,
                  pass: this.ruleForm2.pass
                }*/
             }).then(function (response) {
                console.log(response);
                if(response.data=="sessionon"){
                  gvue.$store.state.logined=true;
                  gvue.$store.state.identification=response.data.ret_msg.identification;
                }else{
                  gvue.$store.state.logined=false;
                }
              })
              .catch(function (error) {
                console.log(error);
                gvue.$store.state.logined=false;
              });
          },
          
          
          
          
          
          sendLogout(){
            var gvue=this;
            this.$ajax({
                method: 'get',
                url: 'api/logout?time='+new Date().getTime(),            
         
             }).then(function (response) {
                console.log(response);
                gvue.getLoginStatus(gvue);
                
                //alert("haha");
              })
              .catch(function (error) {
                gvue.getLoginStatus(gvue);
                console.log(error);            
              });
          },
    
    if(key=="7-1") this.sendLogout();
     //value 什么用的?????
    // @Cacheable(value = "IpvXRfc2544_",key ="(#model).concat('-').concat(#softversion).concat('_IpvXRfc2544')"/*,unless = "#result=null"*/)
    @Cacheable(key ="(#model).concat('-').concat(#softversion).concat('_IpvXRfc2544')"/*,unless = "#result=null"*/)
    public List<IpvXRfc2544> getIpvXRfc2544ByVersionid(String model,String softversion){

    明白value以及这类注解的处理方法---,to thi tha


    <div v-for="room in rooms">
    <ArticleItem v-bind:text="room.courtname" v-bind:name="room.name" ></ArticleItem>
    </div>
  • 相关阅读:
    KALI LINUX 核心概念讲解,持续更新
    KALI LINUX 工具大全之密码破解 --- BruteSpray ( 暴力喷雾 )
    android studio的 gradle 依赖同步错误解决方法
    安卓逆向的初步研究--从某恋app入手
    nc浏览器的十宗罪
    手机重要文件目录(换新机可能要用到)
    国产手机的谷X服务
    安卓手机设置的那些琐事
    办公中遇见的那些问题
    装系统遇到的那些问题
  • 原文地址:https://www.cnblogs.com/cnchengv/p/9993533.html
Copyright © 2011-2022 走看看