CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 00:36:46 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=dc87b15317796359aac884d9dfff6c8e571b7944fe073e24284a19eef21bcf33a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22GEvbQQ9LMqGbwZ4Pc2JNQF63Ye6lw78z%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d2865aac9a3585-BLR
Quasar + Vue plugin issue - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // component.vue
- export default {
- ...
- methods: {
- myMethod: function() {
- this.$axios.get('/call', {
- }).then((resp) => {
- this.$resp.processResponse(resp); // here I'm using my plugin ($resp)
- }, (error) => {
- console.log(error);
- });
- }
- }
- }
- // plugins.js, loaded by Quasar boot, seems OK
- import Vue from 'vue';
- import resp from './plugins/responses.js';
- const plugin = {
- // eslint-disable-next-line no-shadow
- install (Vue) {
- Vue.prototype.$resp = resp; // this installs plugin, seems OK
- }
- };
- Vue.use(plugin);
- // responses.js
- // this is my plugin
- import Vue from 'vue';
- export default {
- processResponse() {
- const text = this.$t('label'); // throws error (see below)
- const text2 = Vue.prototype.$t('label'); // throws error (see below)
- }
- };
- // inside Vue!
- Vue.prototype.$t = function (key) {
- var values = [], len = arguments.length - 1;
- while ( len-- > 0 ) values[ len ] = arguments[ len + 1 ];
- var i18n = this.$i18n;
- // here fails with: "vue-i18n.esm.js?a925:182 Uncaught (in promise) TypeError: Cannot read property '_t' of undefined"
- return i18n._t.apply(i18n, [ key, i18n.locale, i18n._getMessages(), this ].concat( values ))
- };
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐⭐⭐Profit Method⭐⭐
Java | 6 sec ago | 0.10 KB
-
📌 Swapzone +37% glitch ⭐ 6
JavaScript | 8 sec ago | 0.25 KB
-
📌 ChangeNOW Exploit
JavaScript | 11 sec ago | 0.24 KB
-
✅⭐ Make huge profits on trading ⭐⭐ C
JavaScript | 17 sec ago | 0.25 KB
-
📌 Instant BTC Profit Method ✅ Working
JavaScript | 21 sec ago | 0.24 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 26 sec ago | 0.25 KB
-
📝 MAKE $2500 IN 15 MIN ✅ Working
JavaScript | 31 sec ago | 0.24 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ S
JavaScript | 36 sec ago | 0.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand