Skip to content

ikaw-bahala/vue-zohodesk-widget-template

Repository files navigation

vue-ZohoDesk-widget-template

This template should help get you started developing with Vue 3 in Vite.

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Compile and Minify for Production and ready for Zoho Sigma upload

npm run pakc

Lint with ESLint

npm run lint

Note

  • Always wrap you logic with ZOHODESK.extension.onload() to be able to use the Zoho Desk SDK.
export default {
    // `mounted` is a lifecycle hook which we will explain later
    mounted() {
        ZOHODESK.extension.onload().then((App) => {
            ZOHODESK.get("ticket.email").then((response) => {
                console.log(response);
            });
        });
    },
};