• 登录登出


    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>
  • 相关阅读:
    Mysql升级过程的问题
    关于SSM项目注解事务不回滚的问题
    Linux环境下tomcat如何热部署
    Windows系统下python3中安装pyMysql
    jvm性能监控及故障处理工具(《深入理解java虚拟机》)
    jvm垃圾回收器(《深入理解java虚拟机》)
    jvm-运行时数据区域(《深入理解java虚拟机》)
    java源码分析-String
    java源码分析-Object
    2019秋季PAT甲级题解(无第一题)
  • 原文地址:https://www.cnblogs.com/cnchengv/p/9993533.html
Copyright © 2020-2023  润新知