changing from single quote to double quote

This commit is contained in:
Brian 2022-03-28 12:50:09 -06:00
parent 07cf7c8b4a
commit fd1991e5a3
Signed by: brian
GPG Key ID: DE1A5390A3B84CD8

View File

@ -11,8 +11,8 @@
</template> </template>
<script> <script>
import { defineComponent, reactive, ref, computed, watch, onBeforeMount, onMounted } from 'vue' import { defineComponent, reactive, ref, computed, watch, onBeforeMount, onMounted, provide, inject } from "vue"
import AppLayout from '@/Layouts/AppLayout.vue' import AppLayout from "@/Layouts/AppLayout.vue"
export default defineComponent({ export default defineComponent({
emits: [], emits: [],
@ -23,17 +23,20 @@ export default defineComponent({
AppLayout, AppLayout,
}, },
setup(props, {context, emit}) { setup(props, { attrs, slots, emit, expose }) {
let aVariable = reactive({}) let aVariable = ref({})
// computed properties
let compVariable = computed(() => { let compVariable = computed(() => {
//return 'foo' //return "foo"
}) })
watch(variable, (newValue, oldValue) => { // watchers
watch(aVariable, (newValue, oldValue) => {
// //
}) })
// lifecycle hooks
onBeforeMount(() => { onBeforeMount(() => {
// //
}) })
@ -42,6 +45,7 @@ export default defineComponent({
// //
}) })
// methods
function myMethod() { function myMethod() {
aVariable.value = null aVariable.value = null
} }