On the index of quasi-tree graphs with perfect matchings