• 登录登出


    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>
  • 相关阅读:
    flask -服务端项目搭建
    蓝图 Blueprint
    flask-session
    flask-数据库操作 / ORM/Flask-SQLAlchemy/数据表操作/数据操作/数据库迁移
    在 Flask 项目中解决 CSRF 攻击
    Flask-Script 扩展/自定义终端命令/Jinja2模板引擎
    Flask项目创建/http的会话控制/Cookie/Session/请求钩子/异常捕获/context
    redtiger sql injection 练习
    流畅的python--序列构成的数组
    流畅的python--python的数据模型
  • 原文地址:https://www.cnblogs.com/cnchengv/p/9993533.html
Copyright © 2020-2023  润新知