~bendersteed/discordia-chan-fe

b9070ad491515c021d33cc3d21aba9a072c383c1 — Dimakakos Dimos 9 months ago 3952d8c
Add: mounted method to pick title, and apiURL configuration
2 files changed, 10 insertions(+), 4 deletions(-)

M src/App.vue
M src/config.js
M src/App.vue => src/App.vue +8 -4
@@ 95,7 95,8 @@ export default {
        ]
      },
      reply: { id: "", text: "" },
      on: false
      on: false,
      title: ""
    };
  },
  components: {


@@ 151,9 152,12 @@ export default {
  computed: {
    count: function() {
      return this.thread.posts.length;
    }
  }
};
    },
  },
     mounted() {
         this.title = document.querySelector("title").innerText;
     }
 };
</script>

<style>

M src/config.js => src/config.js +2 -0
@@ 15,3 15,5 @@
//  <http://www.gnu.org/licenses/>.

//  This is a configuration file!

const apiURL = '';