智慧农业后台管理页面
guoshilong
2022-10-09 c4611d4428529570dd983656d36573f3d4376ac6
首页圈地关闭后数据残留
3 files modified
12 ■■■■■ changed files
src/page/login/userlogin.vue 2 ●●● patch | view | raw | blame | history
src/views/wel/land.vue 3 ●●●● patch | view | raw | blame | history
vue.config.js 7 ●●●●● patch | view | raw | blame | history
src/page/login/userlogin.vue
@@ -179,7 +179,7 @@
      }
    },
    mounted() {
    },
    watch: {
      'loginForm.deptId'() {
src/views/wel/land.vue
@@ -212,7 +212,8 @@
      this.form.landArea = 0
      this.visible = true;
      this.form.farmId = this.$farmId;
      this.form.landName = ""
      this.form.landType = ""
      getDetail(this.form.farmId).then(res=>{
        this.farmInfo = res.data.data
        this.url = this.drawMapUrlBase + "/base?type=1&lng=112&lat=24&status=manage&longitude="+this.farmInfo.longitude+"&latitude="+this.farmInfo.latitude;
vue.config.js
@@ -4,7 +4,8 @@
module.exports = {
    //路径前缀
    publicPath: "/",
    publicPath:"/zhny-web",
    // publicPath: "/",
    lintOnSave: true,
    productionSourceMap: false,
    chainWebpack: (config) => {
@@ -45,9 +46,9 @@
        proxy: {
            '/api': {
                //本地服务接口地址
                target: 'http://192.168.0.207:89',
                target: 'http://127.0.0.1:89',
                //远程演示服务地址,可用于直接启动项目
                // target: 'http://182.106.212.58:8013/api',
                // target: 'http://182.106.212.58:8020/api',
                ws: true,
                pathRewrite: {
                    '^/api': '/'